]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-80-NOTIFYACCESS: don't specify --pid= if MAINPID= is provided explicitly 34932/head
authorMike Yuan <me@yhndnzj.com>
Tue, 29 Oct 2024 17:35:50 +0000 (18:35 +0100)
committerMike Yuan <me@yhndnzj.com>
Tue, 29 Oct 2024 17:42:16 +0000 (18:42 +0100)
Otherwise, with recent additions, the MAINPIDFDID= generated by
systemd-notify would mismatch with overridden MAINPID=.

test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh

index 47333ef0deb6862a6fa44ce519f000b140db8bc2..c3a6a3982d6a9fd53fbdee0a7c4df9ce91738d62 100755 (executable)
@@ -39,7 +39,7 @@ sync_in b
     sync_in d
 
     # Move main process back to toplevel
-    systemd-notify --pid=parent "MAINPID=$$"
+    systemd-notify "MAINPID=$$"
 
     # Should be dropped again
     systemd-notify --status="BOGUS2" --pid=parent