<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>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.<br>
</p>
<p>Fixed by using fcntl(fd, F_SETFD, FD_CLOEXEC), when I dup libbus
fd for watcher.</p>
<pre class="moz-signature" cols="72">Antoine Aubert
<a class="moz-txt-link-abbreviated" href="mailto:a.aubert@overkiz.com">a.aubert@overkiz.com</a></pre>
<div class="moz-cite-prefix">Le 27/06/2016 à 20:41, LRN a écrit :<br>
</div>
<blockquote
cite="mid:c7f811ec-f19f-1b81-bcab-530069034090@gmail.com"
type="cite">
<pre wrap="">On 27.06.2016 16:08, Antoine Aubert wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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)
</pre>
</blockquote>
<pre wrap="">Make sure (B) doesn't inherit anything other than what you want it to inherit.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dbus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/dbus">https://lists.freedesktop.org/mailman/listinfo/dbus</a>
</pre>
</blockquote>
<br>
</body>
</html>