bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] Deliver pending signals unblocked by pthread_sigmask.


From: Jeremie Koenig
Subject: Re: [PATCH] Deliver pending signals unblocked by pthread_sigmask.
Date: Fri, 3 Sep 2010 02:39:42 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Sep 03, 2010 at 02:14:30AM +0200, Samuel Thibault wrote:
> Jeremie Koenig, le Fri 03 Sep 2010 01:38:29 +0200, a écrit :
> > +  pending = ss->pending & ~ss->blocked;
> > +
> >    __pthread_spin_unlock (&ss->lock);
> >  
> > +  if (! err && pending)
> > +    /* Send a message to the signal thread so it
> > +       will wake up and check for pending signals.  */
> > +    __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ());
> 
> Mmm, more precisely, to follow the POSIX behavior AIUI, rather than
> ss->pending it should be a process-global pending mask.

Indeed, but this will require much more changes in glibc. This patch is
just intended to fix pthread_sigmask and align its behavior on that of
sigprocmask.

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



reply via email to

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