home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!siesoft!athen!maxed
- From: maxed@athen (Hr. Ahn)
- Newsgroups: comp.os.os9
- Subject: Re: Strange problem with setjmp()/longjmp() in OS9
- Message-ID: <1992Sep11.155208.10492@sinix.UUCP>
- Date: 11 Sep 92 15:52:08 GMT
- References: <1992Sep9.165549.15410@microware.com>
- Sender: news@sinix.UUCP (News Administrator)
- Organization: SNI AG Muenchen, STO XS
- Lines: 39
- X-Newsreader: Tin 1.1 PL5
-
- Peter Dibble (dibble@microware.com) wrote:
- : I've tried to reproduce the setjmp()/longjmp from a signal
- : handler problem. I can't.
- [-deleted-]:
- : It doesn't fail. Did I fail to build a test that does the right (wrong)
- : thing? Or is it failing to fail because I'm using the very latest
- : (not shipping) kernel... or maybe there's something about
- : the MVME167...
-
- Yeah, maybe... I'm still running way old version 2.2 of OS-9 and I had
- many problems with intercept routines in combination with the cio trap lib.
-
- (I wrote my own signal() on top of intercept() to be a bit more unix
- compatible and use it in many applications, including those that use
- the cio traplib). But when I rewrote the keyboard input routine for jove
- (Jonathan's Own Version od Emacs, which is far superior to the shipped
- umacs) and used _ss_sig() to trigger the keyboard input to a fifo, I
- got nasty garbage characters in the fifo when I used cio (but everything
- worked perfectly fine if I use the normal library).
-
- I just thought: perhaps it's the combination of longjmp() with cio?!?
-
- Oh yeah, by the way, I had problems with signals + longjmp, too, partly
- because the "interrupt cleanup code" of the intercept() handling routine
- is never executed when you leave it by longjmp(). So the F$Rte is not
- called, and this sends you off somewhere else pretty soon.
-
- I had this problem when I tried to compile old bsd uucp (which times out
- every 20 seconds and expects to return to some restart point by using
- longjmp() from the alarm() routine. [gnuucp doesn't do that, luckily].
-
- Hope it helps..
- Martin
-
- --
- 4 222 Reply to: martin%sd111%athen%unido@mail.Germany.EU.net
- 4 4 2
- 4444 22
- 4 2222
-