dnsmasq: silently ignore if pid file is not existed when killing
This commit is contained in:
@@ -191,6 +191,7 @@ _gl_pid_kill_external(void)
|
|||||||
if (!g_file_get_contents(PIDFILE, &contents, NULL, &error)) {
|
if (!g_file_get_contents(PIDFILE, &contents, NULL, &error)) {
|
||||||
if (g_error_matches(error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
|
if (g_error_matches(error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
|
||||||
do_unlink = FALSE;
|
do_unlink = FALSE;
|
||||||
|
else
|
||||||
_LOGD("spawn: failure to read pidfile %s: %s", PIDFILE, error->message);
|
_LOGD("spawn: failure to read pidfile %s: %s", PIDFILE, error->message);
|
||||||
g_clear_error(&error);
|
g_clear_error(&error);
|
||||||
goto handle_kill;
|
goto handle_kill;
|
||||||
|
Reference in New Issue
Block a user