]> granicus.if.org Git - apache/commitdiff
Fix a comparison with ENOENT which was accidently broken during
authorJeff Trawick <trawick@apache.org>
Tue, 12 Dec 2000 12:01:38 +0000 (12:01 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 12 Dec 2000 12:01:38 +0000 (12:01 +0000)
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

modules/generators/mod_cgid.c

index e8f00c15ca8f644ab6f62f083a56a9feb0516685..1b7cbed0c9c744018ee199376ca32b20ed407025 100644 (file)
@@ -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);