On Mon, 11.08.14 18:46, Lennart Poettering (lenn...@poettering.net) wrote:

> With this code you block, but do not ignore SGRTMIN+1. Now, rtsigs
> actually are implemented in a queue, multiple instances of the same
> signal might be queued up. If you simply block dispatching, then the
> queue will eventually overrun blocking all other signals... Hence, I
> think there needs to be a dummy signal handler assigned to SIGRTMIN+1
> here, so that the signals are dequeued...
> 
> (Thinking about it, it might make sense to export a dummy signal handler
> from sd-event which people can just use here...)

Actually just invoking ignore_signals() from shared/util.c should
suffice for this case here, too...

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to