]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemd-inhibit: ignore signal interrupt from keyboard (#8569)
authorChristian Hesse <mail@eworm.de>
Wed, 28 Mar 2018 19:58:10 +0000 (21:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Mar 2018 19:58:10 +0000 (21:58 +0200)
commit106f12a08fcacef713438fc055872592399deeed
treecaa68961d62a8151ce633e09ab8c4ccfbf98e2b0
parent2d684e65aaacc9f995236843597ddee96ed8aa70
systemd-inhibit: ignore signal interrupt from keyboard (#8569)

By default both processes, systemd-inhibit and the forked one, receive
the signals. Pressing Ctrl+C on the keyboard results in SIGINT being
sent to the processes, followed by SIGTERM being sent to the forked
process when systemd-inhibit exits. This can cause trouble when the
forked process does not clean up properly but exit immediately.

Instead make systemd-inhibit ignore SIGINT, leaving it to the forked
process to clean up and exit.
src/login/inhibit.c