Name release issue
Antoine Aubert
a.aubert at overkiz.com
Mon Jun 27 13:08:12 UTC 2016
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), therefore when the
parent (A) is killed, dbus doesn't release well known names, until child
(B) is killed. (seen on org.freedesktop.DBus.ListNames) in addition,
org.freedesktop.DBus.GetConnectionUnixProcessID ("org.bar.Foo") returns
old (A) PID.
Is There a way to avoid this behaviour ?
Thx for your help.
--
Antoine Aubert
a.aubert at overkiz.com
-------------- 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/20160627/30297aca/attachment.sig>
More information about the dbus
mailing list