]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: set $SYSTEMD_EXEC_PID= environment variable for executed commands
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Jan 2021 06:56:42 +0000 (15:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 31 Jan 2021 16:13:44 +0000 (01:13 +0900)
commitdc4e2940e87f4f0969476b45a1d25322b5210643
tree67e353ff59e4139f794c7a9d2607e972c2b1ad90
parentd2acb93dc52b23a9e5d36dda48c1988aa6e9adf1
core: set $SYSTEMD_EXEC_PID= environment variable for executed commands

It may be useful to detect a command is directly executed by systemd
manager, or indirectly as a child of another process.
man/systemd.exec.xml
src/core/execute.c