ASF Bugzilla – Attachment 34127 Details for
Bug 59981
[patch] Add log message when apr_file_open_stdin/stdout fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add log message when apr_file_open_stdin/apr_file_open_stdout fails
apr_file_open_stdin.patch (text/plain), 693 bytes, created by
jiazhouyang
on 2016-08-11 15:22:29 UTC
(
hide
)
Description:
Add log message when apr_file_open_stdin/apr_file_open_stdout fails
Filename:
MIME Type:
Creator:
jiazhouyang
Created:
2016-08-11 15:22:29 UTC
Size:
693 bytes
patch
obsolete
>--- support/logresolve.c 2016-08-08 15:51:45.000000000 +0800 >+++ support/logresolve_new.c 2016-08-08 15:51:47.000000000 +0800 >@@ -185,8 +185,15 @@ > } /* else */ > } /* while */ > >- apr_file_open_stdout(&outfile, pool); >- apr_file_open_stdin(&infile, pool); >+ if (apr_file_open_stdout(&outfile, pool) != APR_SUCCESS) { >+ apr_file_printf(errfile, "Unable to open stdout"); >+ return 1; >+ } >+ >+ if (apr_file_open_stdin(&infile, pool) != APR_SUCCESS) { >+ apr_file_printf(errfile, "Unable to open stdin"); >+ return 1; >+ } > > /* Allocate two new 10k file buffers */ > if ( (outbuffer = apr_palloc(pool, WRITE_BUF_SIZE)) == NULL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59981
: 34127