home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23307 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.0 KB  |  36 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!wupost!micro-heart-of-gold.mit.edu!uw-beaver!news.u.washington.edu!serval!hlu
  3. From: hlu@eecs.wsu.edu (H.J. Lu)
  4. Subject: Re: bug in signal.h
  5. Message-ID: <1993Jan9.002140.28879@serval.net.wsu.edu>
  6. Sender: news@serval.net.wsu.edu (USENET News System)
  7. Organization: School of EECS, Washington State University
  8. References:  <1993Jan8.212309.10182@athena.mit.edu>
  9. Date: Sat, 9 Jan 93 00:21:40 GMT
  10. Lines: 24
  11.  
  12. In article <1993Jan8.212309.10182@athena.mit.edu>, shap@halifax.syncomas.com writes:
  13. |> The macro for sigismember() needs to test that the signal number
  14. |> passed is <= _NSIG.  Some programs depend on sigismember responding
  15.          ^^
  16.         It should be `< _NSIG' (0 - 31).
  17.  
  18. |> with '0' if the value is out of range.
  19. |> 
  20. |> I found this when trying to build CVS.
  21. |> 
  22. |> 
  23. |> Thanks
  24. |> 
  25. |> 
  26. |> Jonathan S. Shapiro
  27.  
  28. Fixed. Use this one:
  29.  
  30. --------
  31. #define __sigismember(set, sig) \
  32.     ((((sig) < _NSIG) && (*(set) & __sigmask (sig))) ? 1 : 0)
  33. --------
  34.  
  35. H.J.
  36.