home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / programm / 6051 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.2 KB  |  29 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!munnari.oz.au!yarrina.connect.com.au!warrane.connect.com.au!g2syd!michaelh
  3. From: michaelh@g2syd.genasys.com.au (Michael Haldey)
  4. Subject: Re: longjmp() from a signal handler
  5. Message-ID: <1993Jan26.132457.26298@g2syd.genasys.com.au>
  6. Keywords: longjmp signals
  7. Organization: Genasys II, Sydney, Australia
  8. References: <rturner.727977268@imagen>
  9. Date: Tue, 26 Jan 1993 13:24:57 GMT
  10. Lines: 17
  11.  
  12. In article <rturner.727977268@imagen> rturner@imagen.com (Randy Turner) writes:
  13. >I was reading the POSIX.1 standard the other day and it mentions that you
  14. >cannot use the longjmp() library routine from inside a signal handler.  I
  15. >was under the impression that this was valid under BSD 4.3...Can 
  16. >anyone confirm the compatibility of using longjmp() from a signal handler
  17. >when trying to write portable code?
  18. >
  19. As far as I remember, it is not compatible. Therre are two functions:
  20. siglongjmp and sigsetjmp which are supported by POSIX and you can use
  21. them freely. The reason is a behavour of the signal mask.
  22.  
  23. My 0.002
  24. Michael
  25. -- 
  26. Michael Haldey  |  Genasys II Pty Ltd, Sydney, Australia
  27.                 |  Phone:    +61-2-954-2878 (-9930 FAX)
  28.                 |  Internet: michaelh@g2syd.genasys.com.au
  29.