Re: Synchronous method in asynchronous signal callback

Lennart Poettering <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <20150527143340.GA8156@gardel-login>
On Wed, 27.05.15 10:12, Havoc Pennington ([email protected]) wrote:

> On Tue, May 26, 2015 at 3:49 PM, Lennart Poettering <[email protected]> wrote:
> > BTW, we'd probably have used glib in systemd if it wasn't for the fact
> > that it's not OOM-safe, which makes it a non-option for us...
> >
> 
> This is one of the main reasons dbus-daemon didn't use it, too, though
> there were also "political" reasons (keeping the codebase disentangled
> from gnome).
> 
> I became convinced in the process, though, that any
> non-system-critical or remotely complex app that thinks it should or
> could handle OOM is deeply misguided.
> http://blog.ometer.com/2008/02/04/out-of-memory-handling-d-bus-experience/

I agree.

> GLib's "do not handle OOM" policy is correct for the 99% case. Many
> who believe they should be handling OOM are probably wrong. And of
> those who should be, many are probably making a token effort that's
> broken in practice.

I agree, too.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.