If "php-fpm --nodaemonize" is called to be sent into background it forces itself into FG and hangs the calling process
@bukka ci sta già lavorando.
Dal 6/12/2022.
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.