libhal apps exit on message bus restart

Tim Müller t.i.m at zen.co.uk
Mon Nov 29 03:10:38 PST 2004


Hi,

I noticed that my libhal-using apps just exit silently when the system message 
bus (and with it hald) is restarted.

As rarely as that may happen in a 'Joe User' environment, there surely must be 
a better solution than a support lib just calling exit() and not even 
printing a message to the console.

What's the recommended way to work around this in applications?

Is it safe to just do         
 
   dbus_connection_set_exit_on_disconnect (dbus_conn, FALSE);

in the main_loop_hook callback?

Cheers
 -Tim

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list