]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* server/log.c (ap_open_piped_log): Remove errno handling.
authorJoe Orton <jorton@apache.org>
Tue, 17 May 2005 08:03:03 +0000 (08:03 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 17 May 2005 08:03:03 +0000 (08:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170537 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 16aeebda8af1887204cbdada84855f7be0dfb651..b2d4492582601b470855fcb2e0608516e66e16ec 100644 (file)
@@ -927,11 +927,9 @@ AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program)
     apr_pool_cleanup_register(p, pl, piped_log_cleanup,
                               piped_log_cleanup_for_exec);
     if (piped_log_spawn(pl) != APR_SUCCESS) {
-        int save_errno = errno;
         apr_pool_cleanup_kill(p, pl, piped_log_cleanup);
         apr_file_close(ap_piped_log_read_fd(pl));
         apr_file_close(ap_piped_log_write_fd(pl));
-        errno = save_errno;
         return NULL;
     }
     return pl;