From 4ab60ff10935122277bbaed437f82a765279cd19 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 17 Sep 2017 14:20:05 -0500 Subject: rc-schedules.c: pass the correct pid to rc_find_pids This is for #163. --- src/rc/rc-schedules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index 13f615ee..164581d6 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -261,10 +261,10 @@ int do_stop(const char *applet, const char *exec, const char *const *argv, bool killed; int nkilled = 0; - if (pid) + if (pid > 0) pids = rc_find_pids(NULL, NULL, 0, pid); else - pids = rc_find_pids(exec, argv, uid, pid); + pids = rc_find_pids(exec, argv, uid, 0); if (!pids) return 0; -- cgit v1.2.3