From a192caf88f527e09508e32baa623ef85549612ae Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 19 Nov 2017 11:05:30 -0500 Subject: 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 --- src/rc/rc-schedules.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index d60c2822..8f36f073 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -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) -- cgit v1.2.3