diff options
author | Wen Liang <liangwen12year@gmail.com> | 2022-08-25 10:54:19 -0400 |
---|---|---|
committer | Wen Liang <liangwen12year@gmail.com> | 2022-08-25 10:56:47 -0400 |
commit | 9b3a96f82153fc0461bbd1924c7547116193714c (patch) | |
tree | b69cbab1ba026ea2f7716a098bdc49af55e2ad18 | |
parent | 2af8645f71c9723548653be9aba4978cdfa67c80 (diff) | |
download | NetworkManager-9b3a96f82153fc0461bbd1924c7547116193714c.tar.gz |
dnsmasq: silently ignore if pid file is not existed when killing
-rw-r--r-- | src/core/dns/nm-dns-dnsmasq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/dns/nm-dns-dnsmasq.c b/src/core/dns/nm-dns-dnsmasq.c index 7d0f0490e0..d88d3de681 100644 --- a/src/core/dns/nm-dns-dnsmasq.c +++ b/src/core/dns/nm-dns-dnsmasq.c @@ -191,7 +191,8 @@ _gl_pid_kill_external(void) if (!g_file_get_contents(PIDFILE, &contents, NULL, &error)) { if (g_error_matches(error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) do_unlink = FALSE; - _LOGD("spawn: failure to read pidfile %s: %s", PIDFILE, error->message); + else + _LOGD("spawn: failure to read pidfile %s: %s", PIDFILE, error->message); g_clear_error(&error); goto handle_kill; } |