Browse Source

Fix Bug #69865 php-fpm does not close stderr when using syslog

pull/2335/head
Michael Wallner 11 years ago
committed by Joe Watkins
parent
commit
80a851b4dd
No known key found for this signature in database GPG Key ID: F9BA0ADA31CBD89E
  1. 2
      NEWS
  2. 6
      sapi/fpm/fpm/fpm_stdio.c

2
NEWS

@ -15,6 +15,8 @@ PHP NEWS
- FPM:
. Fixed bug #67583 (double fastcgi_end_request on max_children limit).
(Dmitry Saprykin)
. Fixed bug #69865 (php-fpm does not close stderr when using syslog).
(m6w6)
- GD:
. Fixed bug #73968 (Premature failing of XBM reading). (cmb)

6
sapi/fpm/fpm/fpm_stdio.c

@ -73,6 +73,12 @@ int fpm_stdio_init_final() /* {{{ */
return -1;
}
}
#ifdef HAVE_SYSLOG_H
else if (fpm_globals.error_log_fd == ZLOG_SYSLOG) {
/* dup to /dev/null when using syslog */
dup2(STDOUT_FILENO, STDERR_FILENO);
}
#endif
}
zlog_set_launched();
return 0;

Loading…
Cancel
Save