From: William A. Rowe Jr Date: Tue, 23 Oct 2007 22:01:29 +0000 (+0000) Subject: We now have an API to describe pipe creation timeout states, so use it X-Git-Tag: 2.3.0~1316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f72c6c9f89c1e66984b408a19d564761e69e8df;p=apache We now have an API to describe pipe creation timeout states, so use it 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 --- diff --git a/server/log.c b/server/log.c index aa840abfd9..97559d80dc 100644 --- a/server/log.c +++ b/server/log.c @@ -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,