[PATCH 14/15] Hurd signals: SA_SIGINFO support
Jeremie Koenig
jk@jk.fr.eu.org
Tue Jul 19 17:40:00 GMT 2011
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
More information about the Libc-alpha
mailing list