mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 20:40:06 +01:00
dns: actually kill stale dnsmasq process
Interpret the return value of kill(2) correctly...
This commit is contained in:
parent
8502f0c874
commit
35b1ed9082
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue