]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: PR_DEATHSIG is reset after changing id/gid 38875/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 11 Sep 2025 12:16:26 +0000 (13:16 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 11 Sep 2025 12:37:34 +0000 (13:37 +0100)
commit15818468f8b152657aa2be41282868017371cfc1
tree93c795fe4d959a2dd88e62fbb81475d4a254ebeb
parentaece4b0381a339bd36faf46cd99789251201be90
test: PR_DEATHSIG is reset after changing id/gid

Child processes are left hanging on abort() as these child procs
freeze(), so test suites hang as well when test-namespace fails,
and processes are leaked.

From the docs:

The parent-death signal setting is also cleared upon changes to any of
the following thread credentials: effective user ID, effective group ID,
filesystem user ID, or filesystem group ID.

Set the deathsig again after changing id.

Follow-up for 2ade8218598afba0802b1007535b5c8deaeceb58
src/test/test-namespace.c