parent
db4a578273
commit
4ab60ff109
@ -261,10 +261,10 @@ int do_stop(const char *applet, const char *exec, const char *const *argv,
|
|||||||
bool killed;
|
bool killed;
|
||||||
int nkilled = 0;
|
int nkilled = 0;
|
||||||
|
|
||||||
if (pid)
|
if (pid > 0)
|
||||||
pids = rc_find_pids(NULL, NULL, 0, pid);
|
pids = rc_find_pids(NULL, NULL, 0, pid);
|
||||||
else
|
else
|
||||||
pids = rc_find_pids(exec, argv, uid, pid);
|
pids = rc_find_pids(exec, argv, uid, 0);
|
||||||
|
|
||||||
if (!pids)
|
if (!pids)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user