[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
STINNER Victor
report at bugs.python.org
Thu May 22 15:05:25 CEST 2014
STINNER Victor added the comment:
The current implementation of _signal requires a limit on the number of signals to its internal array used to store Python callback:
static volatile struct {
sig_atomic_t tripped;
PyObject *func;
} Handlers[NSIG];
If you want to kill the arbitrary limit, you need to change this structure.
Maybe we need to find NSIG value differently on FreeBSD? For example try to use _SIG_MAXSIG.
http://lists.freebsd.org/pipermail/freebsd-doc/2010-August/017500.html
Please try attached on FreeBSD.
----------
keywords: +patch
Added file: http://bugs.python.org/file35310/signal_nsig_freebsd.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20584>
_______________________________________
More information about the Python-bugs-list
mailing list