Skip to contentSkip to conversation

fd argument in NewConnection() Method (profile-api.txt)

DISCUSSION Randy Yates 2 participants 2 messages Feb 25, 2013 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

How can the bluez stack, which runs in its own process, generate a file descriptor and hand that fd over to another process (the bluetooth profile server process)? I was under the impression that fds can not be passed across processes.

bluez 5.2

Signature · 3 lines
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com
#1 lore raw

Hi Randy,

Quoted 6 lines · Randy Yates

How can the bluez stack, which runs in its own process, generate a file descriptor and hand that fd over to another process (the bluetooth profile server process)? I was under the impression that fds can not be passed across processes.

bluez 5.2

Have a look at the section talking about SCM_RIGHTS in 'man 7 unix'

hth,
daniel