This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients jgehrcke, neologix, pitrou, sdaoden, vstinner
Date 2014-05-22.20:05:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400789113.61.0.765594037558.issue20584@psf.upfronthosting.co.za>
In-reply-to
Content
Extract of system signal.h:
 
#if __BSD_VISIBLE
#define NSIG            32      /* number of old signals (counting 0) */
#endif

whereas <sys/_sigset.h> contains:

#define _SIG_MAXSIG     128

In signalmodule.c, NSIG is still important in the function sigset_to_set(): we need to have the exact maximum signal number of a sigset.

I prefer to make signalmodule.c a little big uglier to fix the NSIG value. I tested attached signal_nsig_freebsd-2.patch on FreeBSD 9.

I suggest to backport this fix to Python 2.7 and 3.4.
History
Date User Action Args
2014-05-22 20:05:13vstinnersetrecipients: + vstinner, pitrou, jgehrcke, neologix, sdaoden
2014-05-22 20:05:13vstinnersetmessageid: <1400789113.61.0.765594037558.issue20584@psf.upfronthosting.co.za>
2014-05-22 20:05:13vstinnerlinkissue20584 messages
2014-05-22 20:05:12vstinnercreate