Boost logo

Boost :

Subject: Re: [boost] structured exceptions for UNIXs -- the hard way
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-09-20 17:33:56


AMDG

On 09/20/2011 02:04 PM, Peter Foelsche wrote:
>
> static std::vector<jmp_buf> s_sStack;
>
> static void signalHandler(void)
> { if (s_sStack.size())
> { jmp_buf s = s_sStack.back();
> s_sStack.pop_back();
> longjmp(s);
> }
> }
>

I didn't think longjmp was async signal safe.

In Christ,
Steven Watanabe




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk