This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]