summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-13 19:57:36 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-13 19:59:28 +0200
commita17204af0e950be7a5199db62ef400814e29aa3c (patch)
treee5d5e6926287787e5c1a9299a60d0930a9be9a47 /src/socket.c
parent0a524ba7c3d86f17e61928763633b5a817a7d020 (diff)
unit: use ESRCH as error when we don't find anybody to kill
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.c b/src/socket.c
index 3a7aa94036..64d1028d4f 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)