This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: cleanup handlers and longjmp
- To: velco at fadata dot bg
- Subject: Re: cleanup handlers and longjmp
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 11 Dec 2000 19:06:10 +0100
- CC: libc-alpha at sources dot redhat dot com
- References: <87aea3fhdm.fsf@merlin.da.fadata.bg>
> What does it mean to "interact correctly" ?
Isn't that pretty clear? You want the cleanup handlers to be executed.
> IMHO, trying to run the cleanup handlers to the point, where setjmp
> has been called, contradicts to the specifications, as this (or other)
> behaviour is not left as implementation defined.
No, guaranteeing behaviour for something that is normally undefined is
an extension to the spec; it does not contradict it.
> Moreover, it doesn't seem to work, the following proggie
That looks like a bug.
Regards,
Martin