]> git.ipfire.org Git - thirdparty/systemd.git/commit
safe_fork: unblock most signals before waiting for child
authorMike Gilbert <floppym@gentoo.org>
Mon, 10 Feb 2020 22:17:02 +0000 (17:17 -0500)
committerMike Gilbert <floppym@gentoo.org>
Mon, 9 Mar 2020 20:58:43 +0000 (16:58 -0400)
commitd7e38115cbe14b289cc9165bb26a36d1c2abbc35
tree34f5171c6a192c9d64d7e4bbd61617fa883b7b22
parent3b5b6826aa864f49cce8f5869328ab440541f6ac
safe_fork: unblock most signals before waiting for child

This ensures we will recieve SIGTSTP if the user presses Ctrl-Z.

We continue blocking SIGCHLD to ensure the child is processed by
wait_for_terminate_and_check.

Fixes: https://github.com/systemd/systemd/issues/9806
src/basic/process-util.c