This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sdaoden
Recipients jgehrcke, neologix, pitrou, sdaoden, vstinner
Date 2014-05-23.10:55:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400842504.39.0.272716376338.issue20584@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2014-05-23 10:55:04sdaodensetrecipients: + sdaoden, pitrou, vstinner, jgehrcke, neologix
2014-05-23 10:55:04sdaodensetmessageid: <1400842504.39.0.272716376338.issue20584@psf.upfronthosting.co.za>
2014-05-23 10:55:04sdaodenlinkissue20584 messages
2014-05-23 10:55:03sdaodencreate