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:
9e7147d
)
Fixed bogus "Error removing PID file" message.
author
short
<>
Fri, 14 May 2004 07:13:55 +0000
(07:13 +0000)
committer
short
<>
Fri, 14 May 2004 07:13:55 +0000
(07:13 +0000)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
8ca1ffa
..
9423a77
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-96,7
+96,8
@@
FILE *f;
if (pid==(pid_t)-1) {
if (unlink(NETWORK_PATHNAME_PID)) {
- g_warning(_("Error removing PID file \"%s\": %m"),NETWORK_PATHNAME_PID);
+ if (errno!=ENOENT)
+ g_warning(_("Error removing PID file \"%s\": %m"),NETWORK_PATHNAME_PID);
return FALSE;
}
return TRUE;