From: short <> Date: Sun, 23 May 2004 20:19:36 +0000 (+0000) Subject: network_stop(): Fixed forgotten removal of a foreign PID file. X-Git-Tag: udpgate-1_0~20 X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=5f6ae22790895f4142bd8066af50bb3e5d0b7214 network_stop(): Fixed forgotten removal of a foreign PID file. --- diff --git a/src/network.c b/src/network.c index 4f790e6..9bdc058 100644 --- a/src/network.c +++ b/src/network.c @@ -624,6 +624,7 @@ int errno_save; errno=0; kill(daemon_pid,SIGKILL); errno_save=errno; + write_daemon_running((pid_t)-1); /* unlink; errors ignored */ if (errno_save) { g_warning(udpgate_printf_alloca(_("Unable to stop the daemon at PID %d: %s"), (int)daemon_pid,strerror(errno_save)));