bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 14/15] Hurd signals: SA_SIGINFO support


From: Jeremie Koenig
Subject: Re: [PATCH 14/15] Hurd signals: SA_SIGINFO support
Date: Tue, 19 Jul 2011 19:10:48 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Jul 03, 2011 at 02:55:06AM +0200, Samuel Thibault wrote:
> Jeremie Koenig, le Wed 29 Jun 2011 18:30:26 +0200, a écrit :
> > +  uc->uc_sigmask = sc->sc_mask;
> > +  uc->uc_stack.ss_sp = (__ptr_t) sc->sc_esp;
> > +  uc->uc_stack.ss_size = 0;
> > +  uc->uc_stack.ss_flags = 0;
> 
> We generally don't know much beyond esp indeed. In the sigaltstack case,
> however, we do.

The ucontext_t passed to the handler refers to the context that the
signal interrupted, though, so this would work only when a SA_ONSTACK
handler is interrupted by another signal.

-- 
Jeremie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org



reply via email to

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