network_stop(): Fixed forgotten removal of a foreign PID file.
authorshort <>
Sun, 23 May 2004 20:19:36 +0000 (20:19 +0000)
committershort <>
Sun, 23 May 2004 20:19:36 +0000 (20:19 +0000)
src/network.c

index 4f790e6..9bdc058 100644 (file)
@@ -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)));