Skip to content

Commit 86d472e

Browse files
committed
Use php_openlog instead of openlog in FPM
Fix incorrect port in the previous commit
1 parent f9d9c5e commit 86d472e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_stdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
297297

298298
#ifdef HAVE_SYSLOG_H
299299
if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
300-
openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
300+
php_openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
301301
fpm_globals.error_log_fd = ZLOG_SYSLOG;
302302
if (fpm_use_error_log()) {
303303
zlog_set_fd(fpm_globals.error_log_fd);

0 commit comments

Comments
 (0)