Article View: comp.std.c
Article #307Re: how to exit from a signal routine
From: Bob Lenk
Date: Fri, 07 Jul 1989 21:38
Date: Fri, 07 Jul 1989 21:38
15 lines
1107 bytes
1107 bytes
> No -- The Standard doesn't create the problem, it merely documents it. Yes! As a common example, if the signal interrupts a malloc() call in most implementations, malloc() may have static data structures in an inconsistent state. If the signal handler calls longjmp(), and some code later calls malloc() or one of its friends, the standard's description of "undefined behavior" applies quite well on any UN*X implementation I know of. Programs that work in these environments may be avoiding malloc() and other troublesome routines by design (based on knowledge of what routines are safe in this regard) or by luck, or they may really have the problem but never (or rarely) encounter it. Bob Lenk rml@hpfcla.hp.com hplabs!hpfcla!rml
Technical Details
Message-ID:
<12040018@hpfcdc.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!rmlReferences:
<7997@cbnews.ATT.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.std.c Subject: Re: how to exit from a signal routine Message-ID: <12040018@hpfcdc.HP.COM> Date: 7 Jul 89 21:38:39 GMT References: <7997@cbnews.ATT.COM> Organization: HP Ft. Collins, Co. Lines: 15