Req #71277 [Opn->Csd]: Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal
| From: | nikic@php.net | Date: | Tue, 30 Jul 2019 08:29:36 +0000 |
| Subject: | Req #71277 [Opn->Csd]: Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222014@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71277&edit=1
ID: 71277
Updated by: nikic@php.net
Reported by: php-bugs at dennis dot birkholz dot biz
Summary: Add SIGRTMIN and SIGRTMAX consts and allow handler
registration in pcntl_signal
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: PCNTL related
Operating System: Linux
PHP Version: Next Minor Version
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
This was implemented in 7.2 I believe.
Previous Comments:
------------------------------------------------------------------------
[2016-08-24 17:00:19] cpriest@php.net
There is a pull request to fix this issue which has been ignored.
------------------------------------------------------------------------
[2016-01-04 19:43:47] php-bugs at dennis dot birkholz dot biz
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 this bug report at https://bugs.php.net/bug.php?id=71277&edit=1