Edit report at https://bugs.php.net/bug.php?id=60018&edit=1
ID: 60018 User updated by: n dot escuder at atlantis-software dot net Reported by: n dot escuder at atlantis-software dot net Summary: no more received signal after pcntl_exec Status: Open Type: Bug Package: PCNTL related -Operating System: Linux 3.0 +Operating System: Linux 3.6 -PHP Version: 5.3.8 +PHP Version: 5.4.9 Block user comment: N Private report: N New Comment: Always have this bug... i need a patch for my cli scripts Previous Comments: ------------------------------------------------------------------------ [2011-10-08 22:36:58] n dot escuder at atlantis-software dot net Description: ------------ No more received the signal HUP after using pcntl_exec Test script: --------------- #!/bin/php <?php function sig_handler() { echo "sig_handler() called\n"; pcntl_exec( "/test.php" ); } echo "set signal\n"; pcntl_signal( SIGHUP, "sig_handler" ); while ( 1 ) { pcntl_signal_dispatch(); sleep(1 ); } ?> Expected result: ---------------- first kill -HUP PID show : sig_handler() called do a second kill -HUP PID and show : sig_handler() called Actual result: -------------- first kill -HUP PID show : sig_handler() called do a second kill -HUP PID and nothing append and no more possible to do a CTRL+C on the program ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60018&edit=1