From: Jeff Trawick Date: Tue, 12 Dec 2000 12:01:38 +0000 (+0000) Subject: Fix a comparison with ENOENT which was accidently broken during X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1aea5e3dd58538cc6bfb55f5d0dd0a7f0b7d3d6a;p=apache Fix a comparison with ENOENT which was accidently broken during the canonical error cleanup. We wish to avoid reporting the boring error where we try to unlink a socket which doesn't already exist. We only want to report interesting stuff. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87298 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index e8f00c15ca..1b7cbed0c9 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -429,7 +429,7 @@ static int cgid_server(void *data) main_server->module_config, &cgid_module); apr_signal(SIGCHLD, SIG_IGN); - if (unlink(sconf->sockname) < 0 && errno == ENOENT) { + if (unlink(sconf->sockname) < 0 && errno != ENOENT) { ap_log_error(APLOG_MARK, APLOG_ERR, errno, main_server, "Couldn't unlink unix domain socket %s", sconf->sockname);