aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-09-17 14:20:05 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-09-17 14:20:05 -0500
commit4ab60ff10935122277bbaed437f82a765279cd19 (patch)
treee768bcb48275719f028c49c41b1c3f47ad3dcc3d
parentdb4a578273dbfa15b8b96686391bcc9ecc04b646 (diff)
rc-schedules.c: pass the correct pid to rc_find_pids
This is for #163.
-rw-r--r--src/rc/rc-schedules.c4
1 files changed, 2 insertions, 2 deletions
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;