devicekit-power-gobject segfault
David Zeuthen
david at fubar.dk
Mon Dec 21 09:35:48 PST 2009
On Mon, 2009-12-21 at 15:54 +0000, Richard Hughes wrote:
> 2009/12/19 Martin Koegler <mkoegler at auto.tuwien.ac.at>:
> > I notice, that libdevkit-power-gobject will segfault in various
> ways,
> > if the connection to the system dbus fails
> > (devkit-power-gobject/dkp-client.c):
>
> I think it's pretty fatal if we can't connect to the system DBus. I'm
> guessing we should just exit() if that's the case. Thoughts?
I guess returning a GError is better - ie. let the user of the library
decide what to do be it exit(), log the error or whatever. Btw, for
failable GObject construction, use the GInitable and GAsyncInitable
interfaces.
Thanks,
David
More information about the devkit-devel
mailing list