X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsocket.c;h=64d1028d4f1e42f90ba440fcbdde1a0f588bbaa8;hp=3a7aa94036d6123ab16c9cc7306f5af71b6a08f4;hb=d605b2fd41b671f93ae5cb67488978846427dda9;hpb=3611581ebdabbe3a1d6a9b5310a0b59792279d7d diff --git a/src/socket.c b/src/socket.c index 3a7aa9403..64d1028d4 100644 --- a/src/socket.c +++ b/src/socket.c @@ -2022,12 +2022,12 @@ static int socket_kill(Unit *u, KillWho who, KillMode mode, int signo, DBusError if (who == KILL_MAIN) { dbus_set_error(error, BUS_ERROR_NO_SUCH_PROCESS, "Socket units have no main processes"); - return -EINVAL; + return -ESRCH; } if (s->control_pid <= 0 && who == KILL_CONTROL) { dbus_set_error(error, BUS_ERROR_NO_SUCH_PROCESS, "No control process to kill"); - return -ENOENT; + return -ESRCH; } if (who == KILL_CONTROL || who == KILL_ALL)