libhal apps exit on message bus restart

Tim Müller t.i.m at
Fri Dec 3 08:08:42 PST 2004

On Monday 29 November 2004 12:32, Martin Pitt wrote:

> > I noticed that my libhal-using apps just exit silently when the system
> > message bus (and with it hald) is restarted.
> >    [...]
> > What's the recommended way to work around this in applications?
> Ubuntu had this problem particularly with gnome-volume-manager. We
> submitted the patch to the Gnome BTS
> The patch is g-v-m specific, but you might get the general idea also
> for other applications.

Thanks, I gave that a shot, and it seems to work if I don't call 
hal_shutdown() on the old libhal context (dbus 0.22-3, hal 0.4.2-1).

It would be great if someone could add a warning comment about this behaviour 
to the libhal/hal_initialize() API docs. I'd be surprised if I was the only 
app programmer not expecting libhal to behave like this.

hal mailing list
hal at

More information about the Hal mailing list