php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71277 Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal
Submitted: 2016-01-04 19:43 UTC Modified: 2019-07-30 08:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php-bugs at dennis dot birkholz dot biz Assigned: nikic (profile)
Status: Closed Package: PCNTL related
PHP Version: Next Minor Version OS: Linux
Private report: No CVE-ID: None
 [2016-01-04 19:43 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-24 17:00 UTC] cpriest@php.net
There is a pull request to fix this issue which has been ignored.
 [2019-07-30 08:29 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-07-30 08:29 UTC] nikic@php.net
This was implemented in 7.2 I believe.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC