Message218958
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> |
|
Date |
User |
Action |
Args |
2014-05-23 10:55:04 | sdaoden | set | recipients:
+ sdaoden, pitrou, vstinner, jgehrcke, neologix |
2014-05-23 10:55:04 | sdaoden | set | messageid: <1400842504.39.0.272716376338.issue20584@psf.upfronthosting.co.za> |
2014-05-23 10:55:04 | sdaoden | link | issue20584 messages |
2014-05-23 10:55:03 | sdaoden | create | |
|