]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-80-NOTIFYACCESS: don't specify --pid= if MAINPID= is provided explicitly
authorMike Yuan <me@yhndnzj.com>
Tue, 29 Oct 2024 17:35:50 +0000 (18:35 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 13 Nov 2024 19:48:10 +0000 (19:48 +0000)
Otherwise, with recent additions, the MAINPIDFDID= generated by
systemd-notify would mismatch with overridden MAINPID=.

(cherry picked from commit c3ecb747f1e35f609f15fc94ad4d5e5ca0bda4a2)

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

index 565ed8d35ac9eddd425d627f37ca271d3f4f65b8..a0e233946eb2058005916ba780f81d55dfeea8d7 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