If "php-fpm --nodaemonize" is called to be sent into background it forces itself into FG and hangs the calling process
オープン
@bukka がすでに取り組んでいます。
2022年12月6日 から。
Bug
SAPI: fpm
- 主要言語
- C
- スター
- 40.4k
- フォーク
- 8.2k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 96
説明
Description
php-fpm process executed in a FG mode using --nodaemonize but sent to background using shell's &, is puting itself back into FG and locks the calling process, completely breaking the intended logic.
The following bash shell code:
#!/bin/bash
function fpm_LaunchProcess()
{
/usr/sbin/php-fpm --nodaemonize 2>&1>/dev/null &
echo "$!"
}
pid=$(fpm_LaunchProcess)
echo "$pid"
Expected:
Printing the executed FPM process pid.
Actual behaviour:
Process is stalled due to php-fpm coming back into FG by itself
The bug added sometime in between PHP 8.0.23 to 8.0.25(Included).
PHP 8.1 is affected too and I think the issue added in the same releases window as mentioned 8.0 versions.
Also adding a 'nohup' before php-fpm did not help.
PHP Version
PHP 8.0.26
Operating System
CentOS 7.9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。