home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!agate!beirut.berkeley.edu!kientzle
- From: kientzle@beirut.berkeley.edu (Tim Kientzle)
- Newsgroups: comp.os.os9
- Subject: Re: Strange problem with setjmp()/longjmp() in OS9
- Date: 4 Sep 1992 00:54:48 GMT
- Organization: University of California, Berkeley
- Lines: 9
- Message-ID: <186c4oINNro6@agate.berkeley.edu>
- References: <87473@netnews.upenn.edu> <v1O85FG@keihh.hanse.de>
- NNTP-Posting-Host: beirut.berkeley.edu
- Summary: Signal handlers are special cases, aren't they?
-
- Mark Elliot (mark@ginger.biophys.upenn.edu) writes:
- >> I am programming in OS-9 v2.3 and cannot get setjmp()/longjmp() to
- >>behave. I would like my signal handling routine to call longjmp() to branch
- >>to a location in my main() routine as set by setjmp().
- Since longjmp() works by rolling back the stack, I would personally
- expect that there's no way to implement setjmp/longjmp to do what you
- want, i.e. be usable from within a signal handler. Remember that YOU
- didn't call the signal handler (the system did), so rolling back the
- stack doesn't make sense.
-