rc-schedules: if given nothing to look for, stop
This avoids trying to kill everything. X-Gentoo-Bug: 631958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=631958
This commit is contained in:
parent
e805c74d31
commit
a192caf88f
@ -307,6 +307,9 @@ int run_stop_schedule(const char *applet,
|
||||
const char *const *p;
|
||||
bool progressed = false;
|
||||
|
||||
if (!(pid > 0 || exec || uid || (argv && *argv)))
|
||||
return 0;
|
||||
|
||||
if (exec)
|
||||
einfov("Will stop %s", exec);
|
||||
if (pid > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user