From: short <> Date: Fri, 14 May 2004 07:13:55 +0000 (+0000) Subject: Fixed bogus "Error removing PID file" message. X-Git-Tag: udpgate-1_0~62 X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=3b73ee215757351f8c69f1a51acdd919c0e98709;hp=9e7147dae595d91406581921daaf5134cde9c3cc Fixed bogus "Error removing PID file" message. --- diff --git a/src/network.c b/src/network.c index 8ca1ffa..9423a77 100644 --- 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;