* sigproc.cc (sig_send): Use sigmask of target thread if it is specified

otherwise default to main sigmask.
This commit is contained in:
Christopher Faylor 2008-02-19 21:42:48 +00:00
parent 344f17f1fa
commit 9feffba7d9
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-19 Christopher Faylor <me+cygwin@cgf.cx>
* sigproc.cc (sig_send): Use sigmask of target thread if it is
specified otherwise default to main sigmask.
2008-02-16 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::fpathconf): Fix _PC_NAME_MAX and

View File

@ -663,7 +663,7 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls)
else if (si.si_signo == __SIGPENDING)
pack.mask = &pending;
else if (si.si_signo == __SIGFLUSH || si.si_signo > 0)
pack.mask = &_my_tls.sigmask;
pack.mask = tls ? &tls->sigmask : &_main_tls->sigmask;
else
pack.mask = NULL;
@ -673,7 +673,7 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls)
if (!pack.si.si_uid)
pack.si.si_uid = myself->uid;
pack.pid = myself->pid;
pack.tls = (_cygtls *) tls;
pack.tls = tls;
if (wait_for_completion)
{
pack.wakeup = CreateEvent (&sec_none_nih, FALSE, FALSE, NULL);