mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
userwork: use a better errno value
ESRCH is literally "No such process".
This commit is contained in:
parent
2e09b2235a
commit
c6cb9d9074
@ -553,7 +553,7 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
parent = getppid();
|
||||
if (parent <= 1)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Parent already died?");
|
||||
return log_error_errno(SYNTHETIC_ERRNO(ESRCH), "Parent already died?");
|
||||
|
||||
if (kill(parent, SIGUSR2) < 0)
|
||||
return log_error_errno(errno, "Failed to kill our own parent: %m");
|
||||
|
Loading…
Reference in New Issue
Block a user