summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-10-29 18:35:50 +0100
committerMike Yuan <me@yhndnzj.com>2024-10-29 18:42:16 +0100
commitc3ecb747f1e35f609f15fc94ad4d5e5ca0bda4a2 (patch)
tree326284109dd6daccfb05535598af31cdfbe80e49
parentnotify: send MAINPIDFDID= for --pid= too if available (diff)
downloadsystemd-c3ecb747f1e35f609f15fc94ad4d5e5ca0bda4a2.tar.xz
systemd-c3ecb747f1e35f609f15fc94ad4d5e5ca0bda4a2.zip
TEST-80-NOTIFYACCESS: don't specify --pid= if MAINPID= is provided explicitly
Otherwise, with recent additions, the MAINPIDFDID= generated by systemd-notify would mismatch with overridden MAINPID=.
-rwxr-xr-xtest/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh b/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh
index 47333ef0de..c3a6a3982d 100755
--- a/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh
+++ b/test/TEST-80-NOTIFYACCESS/TEST-80-NOTIFYACCESS.units/test.sh
@@ -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