1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00

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 2a67d62395
commit e942663a09
+1 -1
View File
@@ -297,7 +297,7 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
#ifdef HAVE_SYSLOG_H
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;
if (fpm_use_error_log()) {
zlog_set_fd(fpm_globals.error_log_fd);