Bug 262487 - lang/python* assumes NSIG includes [SIGRTMIN,SIGRTMAX]; behavior difference from Linux
Summary: lang/python* assumes NSIG includes [SIGRTMIN,SIGRTMAX]; behavior difference f...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-11 18:59 UTC by Enji Cooper
Modified: 2022-04-19 16:23 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2022-03-11 18:59:23 UTC
NSIG on Linux includes the range [SIGRTMIN,SIGRTMAX].

In order for the code in lang/python* to handle realtime signals, either NSIG needs to be modified to include SIGRTMAX, or python needs to be modified to allocate and handle this range as well.

This will require modifying is_valid_signalnum and other relevant pieces of code in signalmodule.c .

A cpython defect is pending as well.

Reported by: Alok Sontakke (Dell)
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2022-03-11 19:12:29 UTC
cpython bug: https://bugs.python.org/issue46989