mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
Merge pull request #1315 from systemd-mailing-devs/1442692671-10134-1-git-send-email-dev@benjarobin.fr
systemd-notify: Always pass a valid pid to sd_pid_notify
This commit is contained in:
commit
35bb18851a
@ -191,7 +191,7 @@ int main(int argc, char* argv[]) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
r = sd_pid_notify(arg_pid, false, n);
|
||||
r = sd_pid_notify(arg_pid ? arg_pid : getppid(), false, n);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to notify init system: %m");
|
||||
goto finish;
|
||||
|
Loading…
x
Reference in New Issue
Block a user