🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #300

Re: how to exit from a signal routine

#300
From: bob larson
Date: Fri, 07 Jul 1989 00:49
19 lines
1286 bytes
In article <7997@cbnews.ATT.COM> mark@cbnews.ATT.COM (Mark Horton) writes:
>Is there
>any conceivable implementation of longjmp that will have problems
>when it gets called 1 1/2 times?

On the Prime 50 series, longjump includes backtracking through the
stack for cleanup$ condition handlers (none will be present in
portable C) and for restoring registers.  I don't think longjump from
within longjump would cause problems unless your cleanup$ condition
handler was non-reentrant, but I wouldn't guarentee this.

Also, you would have to guarentee your second longjump call would have
to be to the same or an earlier level, or you could have a real mess.

-- 
Bob Larson	Arpa:	blarson@basil.usc.edu
Uucp: {uunet,cit-vax}!usc!basil!blarson
Prime mailing list:	info-prime-request%ais1@ecla.usc.edu
			usc!ais1!info-prime-request
Technical Details
Message-ID: <18302@usc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!basil.usc.edu!blarson
References: <7997@cbnews.ATT.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!basil.usc.edu!blarson
From: blarson@basil.usc.edu (bob larson)
Newsgroups: comp.std.c
Subject: Re: how to exit from a signal routine
Keywords: ANSI, longjmp, signal
Message-ID: <18302@usc.edu>
Date: 7 Jul 89 00:49:43 GMT
References: <7997@cbnews.ATT.COM>
Sender: news@usc.edu
Reply-To: blarson@basil.usc.edu (bob larson)
Organization: USC AIS, Los Angeles
Lines: 19