[systemd-devel] [PATCH] login: share VT-signal handler between sessions

Lennart Poettering lennart at poettering.net
Mon Aug 11 09:54:35 PDT 2014


On Mon, 11.08.14 18:46, Lennart Poettering (lennart at 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


More information about the systemd-devel mailing list