]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: do not leave process hanging in test-namespace
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 9 Sep 2025 23:32:02 +0000 (00:32 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 11 Sep 2025 12:37:29 +0000 (13:37 +0100)
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

src/test/test-namespace.c

index 4b12e020e285306c3833906fe60ea3af09247e29..79c9431088981c62ace46417ab71e00f258188cd 100644 (file)
@@ -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;