httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/mpm/perchild perchild.c
Date Sat, 29 Jul 2000 14:14:33 GMT
rbb         00/07/29 07:14:33

  Modified:    src/modules/mpm/perchild perchild.c
  Log:
  convert some -1 back to errno.
  
  Revision  Changes    Path
  1.5       +3 -3      apache-2.0/src/modules/mpm/perchild/perchild.c
  
  Index: perchild.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/mpm/perchild/perchild.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- perchild.c	2000/07/29 07:29:48	1.4
  +++ perchild.c	2000/07/29 14:14:32	1.5
  @@ -788,16 +788,16 @@
   
       omask = umask(0077); /* so that only Apache can use socket */
       rc = bind(sd, (struct sockaddr *)&unix_addr, sizeof(unix_addr));
  -    umask(omask); /* can't fail, so can't clobber -1 */
  +    umask(omask); /* can't fail, so can't clobber errno */
       if (rc < 0) {
  -        ap_log_error(APLOG_MARK, APLOG_ERR, -1, ap_server_conf,
  +        ap_log_error(APLOG_MARK, APLOG_ERR, errno, ap_server_conf,
                        "Couldn't bind unix domain socket %s",
                        socket_name);
           return -1;
       }
   
       if (listen(sd, DEFAULT_PERCHILD_LISTENBACKLOG) < 0) {
  -        ap_log_error(APLOG_MARK, APLOG_ERR, -1, ap_server_conf,
  +        ap_log_error(APLOG_MARK, APLOG_ERR, errno, ap_server_conf,
                        "Couldn't listen on unix domain socket");
           return -1;
       }
  
  
  

Mime
View raw message