From a17204af0e950be7a5199db62ef400814e29aa3c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 13 Jul 2011 19:57:36 +0200 Subject: unit: use ESRCH as error when we don't find anybody to kill --- src/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mount.c') diff --git a/src/mount.c b/src/mount.c index d837041475..d26d45f038 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1769,12 +1769,12 @@ static int mount_kill(Unit *u, KillWho who, KillMode mode, int signo, DBusError if (who == KILL_MAIN) { dbus_set_error(error, BUS_ERROR_NO_SUCH_PROCESS, "Mount units have no main processes"); - return -EINVAL; + return -ESRCH; } if (m->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) -- cgit v1.2.3-54-g00ecf