aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-11-10 20:57:03 +0000
committerRoy Marples <roy@marples.name>2008-11-10 20:57:03 +0000
commiteafbed0366c9cda0c7c2597541b44f3f99b43ec1 (patch)
treeb96b8f2f5ffd238ed47a5ce4d6893abd5a292c9e /src/rc
parent07861410268960e2ba432bf56f4fc6369e83f593 (diff)
Fix stopping with a faulty pidfile.
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/start-stop-daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index a4750e0e..4daa93b5 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -822,6 +822,7 @@ int start_stop_daemon(int argc, char **argv)
/* Allow start-stop-daemon --signal HUP --exec /usr/sbin/dnsmasq
* instead of forcing --stop --oknodo as well */
if (!start &&
+ !stop &&
sig != SIGINT &&
sig != SIGTERM &&
sig != SIGQUIT &&