commit: 4ab60ff10935122277bbaed437f82a765279cd19
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Sun Sep 17 19:20:05 2017 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Sep 17 19:20:05 2017 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4ab60ff1
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(-)
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;