diff options
-rw-r--r-- | src/dnsmasq-manager/nm-dnsmasq-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.c b/src/dnsmasq-manager/nm-dnsmasq-manager.c index 839f77fec2..e402213afa 100644 --- a/src/dnsmasq-manager/nm-dnsmasq-manager.c +++ b/src/dnsmasq-manager/nm-dnsmasq-manager.c @@ -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_info ("Killing stale dnsmasq process %ld", pid); kill (pid, SIGKILL); } |