php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64915
Patch php-5.5.0-bug64915.patch revision 2013-05-24 09:50 UTC by remi@php.net
revision 2013-05-24 09:23 UTC by remi@php.net

Patch php-5.5.0-bug64915.patch for FPM related Bug #64915

Patch version 2013-05-24 09:50 UTC

Return to Bug #64915 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2013-05-24 09:50 UTC | 2013-05-24 09:23 UTC

Developer: remi@php.net


 diff -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);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC