php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch php-5.5.0-bug64915.patch for FPM related Bug #64915Patch version 2013-05-24 09:50 UTC Return to Bug #64915 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2013-05-24 09:50 UTC | 2013-05-24 09:23 UTCDeveloper: remi@php.netdiff -up sapi/fpm/fpm/fpm_stdio.c.old sapi/fpm/fpm/fpm_stdio.c --- sapi/fpm/fpm/fpm_stdio.c.old 2013-05-24 11:10:46.272227302 +0200 +++ sapi/fpm/fpm/fpm_stdio.c 2013-05-24 11:12:47.028641584 +0200 diff -up sapi/fpm/fpm/fpm_stdio.c.bug64915 sapi/fpm/fpm/fpm_stdio.c --- sapi/fpm/fpm/fpm_stdio.c.bug64915 2013-05-23 00:45:27.000000000 +0200 +++ sapi/fpm/fpm/fpm_stdio.c 2013-05-24 11:41:01.414142380 +0200 @@ -291,7 +291,11 @@ int fpm_stdio_open_error_log(int reopen) fd = fpm_globals.error_log_fd; /* for FD_CLOSEXEC to work */ } else { fpm_globals.error_log_fd = fd; +#if HAVE_UNISTD_H + if (fpm_global_config.daemonize || !isatty(fpm_globals.error_log_fd)) { + if (fpm_global_config.daemonize || !isatty(STDERR_FILENO)) { +#else if (fpm_global_config.daemonize) { +#endif zlog_set_fd(fpm_globals.error_log_fd); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Oct 31 23:01:28 2024 UTC |