Commit 4a7c77ac authored by Dan Williams's avatar Dan Williams

dnsmasq: actually kill stale dnsmasq process

Interpret the return value of kill(2) correctly...
parent 35b1ed90
......@@ -385,7 +385,7 @@ kill_existing_for_iface (const char *iface, const char *pidfile)
goto out;
if (strstr (cmdline_contents, "bin/dnsmasq")) {
if (kill (pid, 0)) {
if (kill (pid, 0) == 0) {
nm_log_dbg (LOGD_SHARING, "Killing stale dnsmasq process %ld", 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