Bug #80513 [NEW]: php 7.4 pcntl_signal not catch SIGCHLD signal

From: Date: Mon, 14 Dec 2020 03:31:43 +0000
Subject: Bug #80513 [NEW]: php 7.4 pcntl_signal not catch SIGCHLD signal
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231060@lists.php.net to get a copy of this message
From: simapple at qq dot com Operating system: linux PHP version: 7.4.13 Package: Unknown/Other Function Bug Type: Bug Bug description:php 7.4 pcntl_signal not catch SIGCHLD signal Description: ------------ php 7.4 pcntl_signal not catch SIGCHLD signal.swicth php 5.5 can catch. Test script: --------------- <?php declare(ticks = 1); pcntl_signal(SIGCHLD,function($signal){ echo "get signal $signal"; pcntl_wait($status); }); $pid = pcntl_fork(); if($pid == 0){ echo " i am child ".getmypid(); sleep(1); exit(); } while(1){ -- Edit bug report at https://bugs.php.net/bug.php?id=80513&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80513&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80513&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80513&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80513&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80513&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80513&r=support Expected behavior: https://bugs.php.net/fix.php?id=80513&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80513&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80513&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80513&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80513&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80513&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80513&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80513&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80513&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80513&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80513&r=mysqlcfg

« previous php.bugs (#231060) next »