Use php_openlog instead of openlog in FPM

Fix incorrect port in the previous commit
This commit is contained in:
Jakub Zelenka 2018-08-05 18:21:52 +01:00
parent f9d9c5ebd9
commit 86d472e249

View file

@ -297,7 +297,7 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
#ifdef HAVE_SYSLOG_H #ifdef HAVE_SYSLOG_H
if (!strcasecmp(fpm_global_config.error_log, "syslog")) { if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility); php_openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
fpm_globals.error_log_fd = ZLOG_SYSLOG; fpm_globals.error_log_fd = ZLOG_SYSLOG;
if (fpm_use_error_log()) { if (fpm_use_error_log()) {
zlog_set_fd(fpm_globals.error_log_fd); zlog_set_fd(fpm_globals.error_log_fd);