Hi,<br><br>I am looking at a problem where a process using my dbus wrapper library was exiting. The library itself sets a filter function to look for signals and calls&nbsp; dbus_connection_read_write_dispatch().&nbsp; Debugging futher lead me to &nbsp; _
<i><span style="font-style: italic;">dbus_connection</span></i>_update_dispatch_status_and_unlock calling exit()...<br><br>_dbus_verbose (&quot;Exiting on Disconnected signal\n&quot;);<br>_dbus_exit (1);<br><br>Further probing lead to disconnect signal being the cause of do_io_error() in 
dbus-transport-socket.c, it was called because do_reading() which reads from the socket and gets bytes_read = 0. That means the socket was closed on the other end?<br><br>The question i have is why is the dbus-daemon closing the socket? Or is it?
<br><br>It seems to be hard to reproduce this, that is if DBUS_VERBOSE is on, it does not happen making me believe there is some race condition.<br><br>Another thing is the receiving process B (which exits getting the disconnected signal) gets atleast one signal sent from another process A before it gets the disconnect signal.
<br><br>dbus-daemon, A and B are started one after another at boot in the foreground. Is there some problem where the session bus is not fully initialized? That may not be because atleast one signal from A reaches B.<br><br>
Any insights appreciated. <br><br>Thanks,<br>K<br><br><br>