Re: longjump && re-entrancy
- From: John Reiser <jreiser@xxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 08:04:04 -0800
William Pursell wrote:
setjumpbuf
fprintf() <-- interrupted
[in handler]:
longjump
Could hang if printf still has a lock on the FILE *.
Or does the stack unwinding from longjump magically
release the locks?
longjmp does no "unwinding" at all. It restores the
contents of CPU registers (and state of signal blockage,
if siglongjmp) but does *nothing* else.
--
.
- Follow-Ups:
- Re: longjump && re-entrancy
- From: William Pursell
- Re: longjump && re-entrancy
- References:
- longjump && re-entrancy
- From: William Pursell
- longjump && re-entrancy
- Prev by Date: Re: getenv, putenv
- Next by Date: Re: getenv, putenv
- Previous by thread: longjump && re-entrancy
- Next by thread: Re: longjump && re-entrancy
- Index(es):