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:23 UTC

Return to Bug #64915 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

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
@@ -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)) {
+#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: Fri Mar 29 11:01:29 2024 UTC