Steffen Daode Nurpmeso added the comment: Salut!, amis français! (Und auch sonst so, natürlich.)
POSIX has recently standardized a NSIG_MAX constant in <limits.h> [1]: The value of {NSIG_MAX} shall be no greater than the number of signals that the sigset_t type (see [cross-ref to <signal.h>]) is capable of representing, ignoring any restrictions imposed by sigfillset() or sigaddset(). I'm personally following an advise of Rich Felker in the meantime: #ifdef NSIG_MAX # undef NSIG # define NSIG NSIG_MAX #elif !defined NSIG # define NSIG ((sizeof(sigset_t) * 8) - 1) #endif That is for "old" signals only, there; maybe reducing this to #undef NSIG #ifdef NSIG_MAX # define NSIG NSIG_MAX #else # define NSIG ((sizeof(sigset_t) * 8) - 1) #endif should do the trick for Python on any POSIX system? Ciao from, eh, gray, Germany :) [1] <http://austingroupbugs.net/view.php?id=741#c1834> ---------- _______________________________________ 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