home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4455 comp.unix.xenix.sco:2747
- Newsgroups: comp.unix.programmer,comp.unix.xenix.sco
- Path: sparky!uunet!sybus.sybus.com!myrddin!tct!chip
- From: chip@tct.com (Chip Salzenberg)
- Subject: Calling longjmp() from signal handler: portable?
- Message-ID: <2A9BCC57.640F@tct.com>
- Date: Wed, 26 Aug 1992 18:24:23 GMT
- Organization: TC Telemanagement, Clearwater, FL
- Lines: 14
-
- In working on Smail 3, I've found that I need to interrupt a blocking
- system call (a kernel locking primitive, to be precise). Ron Karr
- seems to think that calling longjmp() from a signal handler will work
- with all known versions of UNIX, not just with BSD as I assumed.
-
- Is Ron right that longjmp() always works from signal handlers? Or am
- I correct that, for example, SCO Xenix sets up a separate stack frame
- for signal handlers, so longjmp() won't work correctly?
-
- Perspiring minds want to know!
- --
- Chip Salzenberg at Teltronics/TCT <chip@tct.com>, <73717.366@compuserve.com>
- "Do Rush place weird subliminal backmasked messages in their songs to
- compel unwilling geeks to commit evil .sig atrocities?" -- Dean Engelhardt
-