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 19:35:58 +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-102826@lists.php.net to get a copy of this message | ||
Commit: 86d472e24917c2588a06af378f90f10c59ba0a88
Author: Jakub Zelenka <bukka@php.net> Sun, 5 Aug 2018 18:21:52 +0100
Parents: f9d9c5ebd9de319fcea925ea64e5fa1ee910aa24
Branches: PHP-7.3
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=86d472e24917c2588a06af378f90f10c59ba0a88
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);