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