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:

Developer: remi@php.net

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(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: Tue Dec 03 17:01:29 2024 UTC