mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 05:32:02 +00: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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user