chiark / gitweb /
login: share VT-signal handler between sessions
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 11 Aug 2014 16:17:54 +0000 (18:17 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 13 Aug 2014 07:05:20 +0000 (09:05 +0200)
commit92683ad2e28c79891e4123d9a421b018dc58870c
treeaa328b2af406b3c1b4010e583d1e1d7b2905430c
parent38de08a7e476bb78b02fa5480ca3d038eedd66e7
login: share VT-signal handler between sessions

sd-event does not allow multiple handlers for a single signal. However,
logind sets up signal handlers for each session with VT_PROCESS set (that
is, it has an active controller). Therefore, registering multiple such
controllers will fail.

Lets make the VT-handler global, as it's mostly trivial, anyway. This way,
the sessions don't have to take care of that and we can simply acknowledge
all VT-switch requests as we always did.
src/login/logind-session.c
src/login/logind-session.h
src/login/logind.c