git://git.jankratochvil.net
/
udpgate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1945440
)
network_stop(): Fixed forgotten removal of a foreign PID file.
author
short
<>
Sun, 23 May 2004 20:19:36 +0000
(20:19 +0000)
committer
short
<>
Sun, 23 May 2004 20:19:36 +0000
(20:19 +0000)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
4f790e6
..
9bdc058
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-624,6
+624,7
@@
int errno_save;
errno=0;
kill(daemon_pid,SIGKILL);
errno_save=errno;
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)));
if (errno_save) {
g_warning(udpgate_printf_alloca(_("Unable to stop the daemon at PID %d: %s"),
(int)daemon_pid,strerror(errno_save)));