Req #71277 [NEW]: Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal

From: Date: Mon, 04 Jan 2016 19:43:51 +0000
Subject: Req #71277 [NEW]: Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198413@lists.php.net to get a copy of this message
From: php-bugs at dennis dot birkholz dot biz Operating system: Linux PHP version: Next Minor Version Package: PCNTL related Bug Type: Feature/Change Request Bug description:Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal Description: ------------ POSIX defines so called real-time signals which are essentially signals without a specific meaning that are free to be used for any purpose. These signals have numbers in the range from SIGRTMIN to SIGRTMAX and there are usually ~30 of them available (see http://man7.org/linux/man-pages/man7/signal.7.html for more information on real-time signals). The required constants SIGRTMIN and SIGRTMAX are currently not available in PHP. In addition, pcntl_signal() has a hard coded upper limit of 32 for signal values so no signal handlers for these real-time signals can be registered even if they are passed in as numeric values (which is dangerous as some of the signals are used by the glibc POSIX threads implementation and the SIGRTMIN constant is adjusted dynamically to reflect that). I have a pull request open at https://github.com/php/php-src/pull/1457 to implement that missing behaviour. -- Edit bug report at https://bugs.php.net/bug.php?id=71277&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71277&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71277&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71277&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71277&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71277&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71277&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71277&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71277&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71277&r=support Expected behavior: https://bugs.php.net/fix.php?id=71277&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71277&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71277&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71277&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71277&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71277&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71277&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71277&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71277&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71277&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71277&r=mysqlcfg

« previous php.bugs (#198413) next »