Summary: | app-eselect/eselect-php: php-fpm does not close stderr when using syslog | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | Keywords: | UPSTREAM |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/php/php-src/pull/1432 | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=547916 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Thomas Deutschmann (RETIRED)
![]() In PHP it is only stderr which won't be closed when running with "error_log = syslog". I created a bug in upstream's bug tracker (https://bugs.php.net/bug.php?id=69865) due to the fact that the similar bug 547916 was fixed by upstream. Does this fix it for you? https://github.com/m6w6/php-src/commit/469ec0d478073627654f853a5eed4c52faca0796 My instinct says that's probably the right place for a fix since php-fpm is daemonizing itself. All of these old unix programming books say that the process should attach the three inherited std* descriptors to something like /dev/null. Yes, this fixes the problem for me. This is fixed upstream (see $url) and will make its way into a release eventually. |