]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: don't try to reset the disposition of SIGKILL
authorChris Webb <chris@arachsys.com>
Mon, 4 Dec 2023 18:15:14 +0000 (18:15 +0000)
committerChris Webb <chris@arachsys.com>
Mon, 4 Dec 2023 18:15:14 +0000 (18:15 +0000)
commit2ee2f2821b3d0b3779f62eb3b9aa817b844c94fd
treef19adb03800019f6d8a3149fb8359cb2a92b35b7
parent6a82643ad3ff237181b7e0fca1640282430625ca
unshare: don't try to reset the disposition of SIGKILL

If the child process is killed with SIGKILL, don't attempt to reset the
disposition of SIGKILL (which can't be caught or ignored anyway) before
self-signalling. This caused a misleading 'sigprocmask unblock failed'
error instead of dying with the same SIGKILL status as the child.

Fixes: https://github.com/util-linux/util-linux/issues/2614
Signed-off-by: Chris Webb <chris@arachsys.com>
sys-utils/unshare.c