Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!island!grenada!christmas!rtm From: rtm@christmas.UUCP (Richard Minner) Newsgroups: comp.lang.c Subject: Re: longjmp out of signal handler Message-ID: <18@christmas.UUCP> Date: 6 Dec 90 05:21:31 GMT References: <17@christmas.UUCP> <1990Nov30.172846.23669@zoo.toronto.edu> Reply-To: rtm@island.uu.net (Richard Minner) Organization: Island Graphics, Sacramento, California Lines: 18 In article <1990Nov30.172846.23669@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: >Although the wording under longjmp() and under signal() could stand to be >a bit more consistent, ... You're too kind. I'd say it borders on contradiction: 4.6.2.1 : "...the longjmp function shall execute correctly in contexts of interrupts, signals and any of their related functions." But of course not signals caused by interrupts. Anyway, 4.7 is more restrictive so it wins. Thanks for helping me understand the situation, I won't bring it up again (and I'll be much more wary of longjmp's in handlers). You forgot to mention another relevant part of the Standard, on pg.1 footnote: "The Standard ... is not a tutorial." -- Richard Minner || {uunet,sun,well}!island!rtm (916) 736-1323 || || Island Graphics Corporation Sacramento, CA ||