Fix stopping with a faulty pidfile.

This commit is contained in:
Roy Marples 2008-11-10 20:57:03 +00:00
parent 0786141026
commit eafbed0366

View File

@ -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 &&