dnsmasq: silently ignore if pid file is not existed when killing

(cherry picked from commit 9b3a96f821)
This commit is contained in:
Wen Liang 2022-08-25 10:54:19 -04:00 committed by Beniamino Galvani
parent 63a8cec1b1
commit 1e112d7e65

View file

@ -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;
}