This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 14/15] Hurd signals: SA_SIGINFO support
- From: Jeremie Koenig <jk at jk dot fr dot eu dot org>
- To: libc-alpha at sourceware dot org, bug-hurd at gnu dot org,Roland McGrath <roland at hack dot frob dot com>
- Date: Tue, 19 Jul 2011 19:10:48 +0200
- Subject: Re: [PATCH 14/15] Hurd signals: SA_SIGINFO support
- References: <1309365027-4774-1-git-send-email-jk@jk.fr.eu.org><1309365027-4774-15-git-send-email-jk@jk.fr.eu.org><20110703005506.GP11935@const.famille.thibault.fr>
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