18 lines
454 B
Diff
18 lines
454 B
Diff
diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c
|
|
index e28c0cb..4072017 100644
|
|
--- a/sapi/fpm/fpm/fpm_stdio.c
|
|
+++ b/sapi/fpm/fpm/fpm_stdio.c
|
|
@@ -73,6 +73,12 @@ int fpm_stdio_init_final() /* {{{ */
|
|
return -1;
|
|
}
|
|
}
|
|
+#ifdef HAVE_SYSLOG_H
|
|
+ else if (fpm_globals.error_log_fd == ZLOG_SYSLOG) {
|
|
+ /* dup to /dev/null when using syslog */
|
|
+ dup2(STDOUT_FILENO, STDERR_FILENO);
|
|
+ }
|
|
+#endif
|
|
}
|
|
zlog_set_launched();
|
|
return 0;
|