]> git.ipfire.org Git - thirdparty/util-linux.git/commit
su: unblock signals is all initialized
authorKarel Zak <kzak@redhat.com>
Fri, 11 Aug 2017 15:05:00 +0000 (17:05 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Sep 2017 09:48:56 +0000 (11:48 +0200)
commit8ce9c38690103fa18fc17fa209996ce747186cd4
tree6f0ac7897a3519f166f97b6f524e63d290acf168
parent5fc211d2178aad934f8d24d44dd73d060f4577e1
su: unblock signals is all initialized

This patch a little bit reorders signals initialization. The original
code unblocks SIGINT SIGQUIT before signal handler is set for the
signals. It means there is a small possible race.

It seems better to compose wanted mask, setup handlers and then
unblock all the wanted signals.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c