Bug #71437 [NEW]: pcntl_signal(SIGCHLD, SIG_IGN); dont work property

From: Date: Sat, 23 Jan 2016 23:15:32 +0000
Subject: Bug #71437 [NEW]: pcntl_signal(SIGCHLD, SIG_IGN); dont work property
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198846@lists.php.net to get a copy of this message
From: bupycnet at gmail dot com Operating system: ArchLinux PHP version: 7.0.3RC1 Package: PCNTL related Bug Type: Bug Bug description:pcntl_signal(SIGCHLD, SIG_IGN); dont work property Description: ------------ 1. If i use it - sleep function dont work. 2. It if use it in class - its not work. Test script: --------------- declare(ticks = 1); pcntl_signal(SIGCHLD, SIG_IGN); for($i=0;$i<300;$i++){ $pid = pcntl_fork(); if ($pid == -1) { die('could not fork'); } else if ($pid) { usleep(2500); } else { echo 'Child'.$i."\r\n"; sleep(mt_rand(1,3)); exit; } } echo 'Test123'; sleep(60); echo 'Test456'; Expected result: ---------------- This script work withouts sleep Actual result: -------------- Sleep need work. -- Edit bug report at https://bugs.php.net/bug.php?id=71437&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71437&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71437&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71437&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71437&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71437&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71437&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71437&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71437&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71437&r=support Expected behavior: https://bugs.php.net/fix.php?id=71437&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71437&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71437&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71437&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71437&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71437&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71437&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71437&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71437&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71437&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71437&r=mysqlcfg

« previous php.bugs (#198846) next »