[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
Charles-François Natali
report at bugs.python.org
Thu May 22 21:40:39 CEST 2014
Charles-François Natali added the comment:
> Or the structure could simply host up to 256 handlers, regardless of NSIG.
> I'm uncomfortable with tweaking NSIG specifically for FreeBSD. If the FreeBSD headers export the wrong value, it's not really Python's problem.
Agreed.
And the current code is already complicated enough:
#ifndef NSIG
# if defined(_NSIG)
# define NSIG _NSIG /* For BSD/SysV */
# elif defined(_SIGMAX)
# define NSIG (_SIGMAX + 1) /* For QNX */
# elif defined(SIGMAX)
# define NSIG (SIGMAX + 1) /* For djgpp */
# else
# define NSIG 64 /* Use a reasonable default value */
# endif
#endif
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20584>
_______________________________________
More information about the Python-bugs-list
mailing list