Commit 35b1ed90 authored by Dan Williams's avatar Dan Williams

dns: actually kill stale dnsmasq process

Interpret the return value of kill(2) correctly...
parent 8502f0c8
......@@ -106,7 +106,7 @@ kill_existing (const char *progname, const char *pidfile, const char *kill_match
goto out;
if (strstr (cmdline_contents, kill_match)) {
if (kill (pid, 0)) {
if (kill (pid, 0) == 0) {
nm_log_dbg (LOGD_DNS, "Killing stale %s child process %ld", progname, pid);
kill (pid, SIGKILL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment