home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!charon.amdahl.com!amdahl!rtech!sgiblab!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: <1993Jan28.015353.18940@g2syd.genasys.com.au>
- Keywords: longjmp signals
- Organization: Genasys II, Sydney, Australia
- References: <rturner.727977268@imagen> <1993Jan26.132457.26298@g2syd.genasys.com.au> <rturner.728076215@imagen>
- Date: Thu, 28 Jan 1993 01:53:53 GMT
- Lines: 24
-
- In article <rturner.728076215@imagen> rturner@imagen.com (Randy Turner) writes:
- ...
- > But from within a signal handler, even siglongjmp() is not compatible.
- > I think the problem stems from the fact that signal delivery is an
- > implementation-specific issue and that POSIX cannot guarantee that the
- > runtime stack the signal is delivered on is the same runtime stack that
- > the the jmp_buf[] references.
-
- You can specify alternative stack, there are ways to do it.
-
- > The POSIX.1 spec says that only a subset
- > of library calls are safe to call from inside a signal handler, and the
- > longjmp()/siglongjmp() calls are not among them. I was curious if
- > Sys-V/R4 supports longjmp'ing from a signal handler, or is anyone has
- > code that does this?
- > Randy
-
- Absolutely correct, but the reason is not in the stack.
-
- Michael
- --
- Michael Haldey | Genasys II Pty Ltd, Sydney, Australia
- | Phone: +61-2-954-2878 (-9930 FAX)
- | Internet: michaelh@g2syd.genasys.com.au
-