]> granicus.if.org Git - apache/commitdiff
We now have an API to describe pipe creation timeout states, so use it
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 23 Oct 2007 22:01:29 +0000 (22:01 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 23 Oct 2007 22:01:29 +0000 (22:01 +0000)
to ensure no platform has quirks with their particular default.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@587670 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index aa840abfd90c197d2330220e5e24c46152d77c8f..97559d80dcc61e1b96b39d4cbda9e60141706456 100644 (file)
@@ -1000,8 +1000,9 @@ AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program)
     pl->p = p;
     pl->program = apr_pstrdup(p, program);
     pl->pid = NULL;
-    if (apr_file_pipe_create(&ap_piped_log_read_fd(pl),
-                             &ap_piped_log_write_fd(pl), p) != APR_SUCCESS) {
+    if (apr_file_pipe_create_ex(&ap_piped_log_read_fd(pl),
+                                &ap_piped_log_write_fd(pl),
+                                APR_FULL_BLOCK, p) != APR_SUCCESS) {
         return NULL;
     }
     apr_pool_cleanup_register(p, pl, piped_log_cleanup,