<HTML><HEAD>
<META http-equiv=Content-Type content='text/html; charset=utf-8'>
<title>Samsung Enterprise Portal mySingle</title>
<style> P, td, li {font-family:Arial, arial; font-size:9pt; margin-top:5px;margin-bottom:5px;} body{font-family:Arial, arial; font-size:9pt;}</style>
</HEAD><BODY>Dear Makuchaku,
<p> </p>
<p>Well.. using dbus_g_connection_unref and similar approach was the *struggle*
I've talked about <sigh></p>
<p> </p>
<p>dbus_g_bus_get</p>
<p>if (fork() == 0) </p>
<p>{</p>
<p> dbus_g_connection_unref // this closes the
parent's dbus-connection !!</p>
<p>}</p>
<p> </p>
<p>Any development to resolve would introduce non-portable APIs specific to
UNIX environment which I am reluctant to pursue.</p>
<p> </p>
<p>Best regards,</p>
<p> </p>
<p>Sean</p>
<p> </p><p> </p><br><br>------- <b>Original Message</b> -------<br><b>Sender</b> : मयंक जैन (makuchaku)<mayank.gnu@gmail.com><br><b>Date</b> : 2007-04-05 15:14<br><b>Title</b> : Re: dbus fork problem<br><br>On 4/5/07, Sean Kang <sean_kang@samsung.com> wrote:
<br>> After strugging for a while, we've noticed that dbus connection doesn't seem
<br>> to work with fork() system call.
<br>>
<br>> The connection is copied but there is no API to properly close the
<br>> connection so the new connection can be made.
<br>
<br>Hi Sean,
<br>
<br>Though I've not used dbus-glib bindings with a system in which I had
<br>to fork, but maybe you can try dbus_g_connection_unref so that the
<br>refcount goes to zero & the object is finalized.
<br>
<br>I hope it helps :)
<br>Makuchaku
<br>http://www.makuchaku.info/blog
<br>
<br>
<br></BODY></HTML>