diff options
author | Tobias Stoeckmann | 2017-09-25 21:54:11 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-26 12:03:24 +0200 |
commit | f17bda66bd440fe8375f5fd13e2efa6bd3a0c942 (patch) | |
tree | eab5e1fef8a164903f27bdcc8025f69d5fea7cbd /lib/setproctitle.c | |
parent | docs: add 2.30.2 to ReleaseNotes (diff) | |
download | kernel-qcow2-util-linux-f17bda66bd440fe8375f5fd13e2efa6bd3a0c942.tar.gz kernel-qcow2-util-linux-f17bda66bd440fe8375f5fd13e2efa6bd3a0c942.tar.xz kernel-qcow2-util-linux-f17bda66bd440fe8375f5fd13e2efa6bd3a0c942.zip |
login: fix signal race
The functions warnx(3) and gettext(3) are not safe to use within signal
handlers and should be avoided. Preparing the message beforehand and
calling write(2) as well as calling _exit(2) solves the problem.
[kzak@redhat.com: - use program_invocation_short_name rather than argv[0],
- use ignore_result() to keep compiler happy]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/setproctitle.c')
0 files changed, 0 insertions, 0 deletions