STINNER Victor added the comment:

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.

----------
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35317/signal_nsig_freebsd-2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20584>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to