dbus linked with libglib by default

Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Thu Sep 21 07:15:53 PDT 2006


On Thu, 2006-09-21 at 16:23, ext frederic heem wrote:
...
> Apart from the initial work to change all dbus function to their glib 
> counterpart, there isn't any drawback at all. 

There is a drawback: out-of-memory (OOM) handling. The Glib library is
inconvenient in an embedded environment when the RAM really runs out
(and there is no swap to save you). As someone said, Glib typically
calls abort() in OOM. And if D-Bus is used in a system-critical daemon,
you don't want the daemon to call abort() -- you want to keep the daemon
running.

So, using Glib in D-Bus is not a good idea until Glib allows the
programmer to handle OOM.

BR, Kimmo



More information about the dbus mailing list