Re: Name release issue

Antoine Aubert <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
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
[email protected]

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
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/dbus

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXchSlAAoJEDH+/g1d3nua2h8H/ilNYsc+8Y30RtdD69fPBLlm
jlqNBsVvRRunDSCdstyEAh/mI/2QqsNc72hQuyNfCsUh7jyxhYaAvCTqwvLJ3kLz
icLhLVZ9a+G4+17V/o35z8a4PWP9lS9/ZP95RXjp8IqCAv830b/9FTcmlL9sDG/p
hvJPlT0d1rV8qGxSF/3J1XMDfj7yp3/BKIP5mhYignkYZ+vmVQrBWyaWWFi4qXCG
RWeF6/XDzkBEgjNET4DEaxdzqIx5YTDlRt2bxlKt3GR/CR0+AEBFegihObTimy+j
vQ+i7GIC8Kp+0aU9L2TQwLA1Z0112aSb4QZQJtvW5AWo4zSMMDuuGMrplsjW0BI=
=wH4Q
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.