*) main core: Emit errors during the initial apr_app_initialize()
or apr_pool_create() (when apr-based error reporting is not ready).
- [William Rowe]
+ [William Rowe, Jeff Trawick]
*) log core: fix the new piped logger case where we couldn't connect
the replacement stderr logger's stderr to the NULL stdout stream.
apr_pool_t *cntx;
apr_status_t stat;
const char *failed = "apr_app_initialize()";
+
stat = apr_app_initialize(argc, argv, NULL);
if (stat == APR_SUCCESS) {
failed = "apr_pool_create()";
* but APR doesn't exist yet, we can't use it for reporting
* these earliest two failures;
*/
- char ctimebuff[APR_CTIME_LEN + 1];
+ char ctimebuff[APR_CTIME_LEN];
apr_ctime(ctimebuff, apr_time_now());
- ctimebuff[APR_CTIME_LEN] = '\0';
fprintf(stderr, "[%s] [crit] (%d) %s: %s failed "
- "to initial context, exiting",
+ "to initial context, exiting\n",
ctimebuff, stat, (*argv)[0], failed);
apr_terminate();
exit(1);