com php-src: Use php_openlog instead of openlog in FPM: sapi/fpm/fpm/fpm_stdio.c
| From: | Jakub Zelenka | Date: | Sun, 05 Aug 2018 17:21:52 +0000 |
| Subject: | com php-src: Use php_openlog instead of openlog in FPM: sapi/fpm/fpm/fpm_stdio.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102819@lists.php.net to get a copy of this message | ||
Commit: e942663a0942a90ec6af2657e5086ac4f4a5e0fc
Author: Jakub Zelenka <bukka@php.net> Sun, 5 Aug 2018 18:21:52 +0100
Parents: 2a67d62395c1e9a2debf70cdf29613302cdb0788
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e942663a0942a90ec6af2657e5086ac4f4a5e0fc
Log:
Use php_openlog instead of openlog in FPM
Fix incorrect port in the previous commit
Changed paths:
M sapi/fpm/fpm/fpm_stdio.c
Diff:
diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c
index 8877413..599333e 100644
--- a/sapi/fpm/fpm/fpm_stdio.c
+++ b/sapi/fpm/fpm/fpm_stdio.c
@@ -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);