Message218916
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. |
|
| Date |
User |
Action |
Args |
| 2014-05-22 20:05:13 | vstinner | set | recipients:
+ vstinner, pitrou, jgehrcke, neologix, sdaoden |
| 2014-05-22 20:05:13 | vstinner | set | messageid: <1400789113.61.0.765594037558.issue20584@psf.upfronthosting.co.za> |
| 2014-05-22 20:05:13 | vstinner | link | issue20584 messages |
| 2014-05-22 20:05:12 | vstinner | create | |
|