libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] Signal handlers and unw_resume


From: Archie Cobbs
Subject: Re: [libunwind] Signal handlers and unw_resume
Date: Tue, 24 Aug 2004 08:55:16 -0500 (CDT)

David Mosberger wrote:
>   Archie> The only issue I can think of is with restoring the signal mask,
>   Archie> e.g., like siglongjmp() does. If you only sigjmp() out of a signal
>   Archie> handler, the signal remains blocked.
> 
> Not with unw_resume(3).  To quote from the man-page:
> 
>  if execution in any of the stack frames younger (more deeply nested)
>  than the one identified by cp was interrupted by a signal, then
>  unw_resume() will restore all registers as well as the signal mask.

Thanks, glad to know that :-)

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]