2013-02-25 05:13:17

by Randy Yates

[permalink] [raw]
Subject: fd argument in NewConnection() Method (profile-api.txt)

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
--
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com


2013-02-25 16:59:32

by Daniel Wagner

[permalink] [raw]
Subject: Re: fd argument in NewConnection() Method (profile-api.txt)

Hi Randy,

On 25.02.2013 06:13, Randy Yates wrote:
> 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