aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-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;