Name release issue
Antoine Aubert
a.aubert at overkiz.com
Tue Jun 28 06:09:37 UTC 2016
Thanks, well, I solve the issue: Process B was spawn by forking process
A. Means B inherits FD table of process A, even A is killed, unix socket
client still live in B.
Fixed by using fcntl(fd, F_SETFD, FD_CLOEXEC), when I dup libbus fd for
watcher.
Antoine Aubert
a.aubert at overkiz.com
Le 27/06/2016 à 20:41, LRN a écrit :
> On 27.06.2016 16:08, Antoine Aubert wrote:
>> Hello,
>>
>> I'm facing an issue on releasing well known names.
>>
>> * Process A, "org.bar.Foo" dbus well known name
>>
>> * Process B, spawn by process A with system() call. (i.e.
>> system("/etc/init.d/B start), using double fork daemonize)
>>
>> The spawned process (B) inherits parent fd's (A)
> Make sure (B) doesn't inherit anything other than what you want it to inherit.
>
>
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20160628/3188e2e1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20160628/3188e2e1/attachment.sig>
More information about the dbus
mailing list