From: Ryan Bloom Date: Sat, 29 Jul 2000 14:14:32 +0000 (+0000) Subject: convert some -1 back to errno. X-Git-Tag: APACHE_2_0_ALPHA_5~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b75a05a3af7dee26751e65e00113dc9190100d9;p=apache convert some -1 back to errno. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85932 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index 4f148df8fa..e320394ab9 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -788,16 +788,16 @@ static int create_child_socket(int child_num, ap_pool_t *p) 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; } diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index 4f148df8fa..e320394ab9 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -788,16 +788,16 @@ static int create_child_socket(int child_num, ap_pool_t *p) 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; }