Edit report at https://bugs.php.net/bug.php?id=60018&edit=1
ID: 60018 Updated by: m...@php.net Reported by: n dot escuder at atlantis-software dot net Summary: no more received signal after pcntl_exec -Status: Open +Status: Not a bug Type: Bug Package: PCNTL related Operating System: Linux 3.9 PHP Version: 5.4.16 -Assigned To: +Assigned To: mike Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. pcntl_exec replaces the current process, try exec instead. Previous Comments: ------------------------------------------------------------------------ [2013-06-26 16:23:34] n dot escuder at atlantis-software dot net This problem always exist.... Please i need signals in php cli ------------------------------------------------------------------------ [2012-12-06 11:05:17] n dot escuder at atlantis-software dot net Always have this bug... i need a patch for my cli scripts ------------------------------------------------------------------------ [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