You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/12/12 13:01:39 UTC
cvs commit: httpd-2.0/modules/generators mod_cgid.c
trawick 00/12/12 04:01:39
Modified: modules/generators mod_cgid.c
Log:
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.
Revision Changes Path
1.51 +1 -1 httpd-2.0/modules/generators/mod_cgid.c
Index: mod_cgid.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- mod_cgid.c 2000/11/13 03:50:16 1.50
+++ mod_cgid.c 2000/12/12 12:01:38 1.51
@@ -429,7 +429,7 @@
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);