From: Luca Boccassi Date: Tue, 9 Sep 2025 23:32:02 +0000 (+0100) Subject: test: do not leave process hanging in test-namespace X-Git-Tag: v258~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aece4b0381a339bd36faf46cd99789251201be90;p=thirdparty%2Fsystemd.git test: do not leave process hanging in test-namespace It is killed when the main test process exists, but still, it will be left hanging while other test cases run, so it's not very clean. Follow-up for 8b5e3be88eeb1bdba50c87cb24d9e6b31e825f38 --- diff --git a/src/test/test-namespace.c b/src/test/test-namespace.c index 4b12e020e28..79c94310889 100644 --- a/src/test/test-namespace.c +++ b/src/test/test-namespace.c @@ -425,7 +425,7 @@ TEST(namespace_get_leader) { } TEST(detach_mount_namespace_harder) { - _cleanup_(pidref_done) PidRef pid = PIDREF_NULL; + _cleanup_(pidref_done_sigkill_wait) PidRef pid = PIDREF_NULL; _cleanup_close_pair_ int p[2] = EBADF_PAIR; char x = 0; int r;