Commit 1aea5e3d authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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
parent 25c4de09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);