Skip to content

Commit

Permalink
Fix Bug #69865
Browse files Browse the repository at this point in the history
php-fpm does not close stderr when using syslog
  • Loading branch information
m6w6 committed Jul 22, 2015
1 parent 3eee495 commit 469ec0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sapi/fpm/fpm/fpm_stdio.c
Expand Up @@ -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;
Expand Down

0 comments on commit 469ec0d

Please sign in to comment.