Cygwin: _pinfo::siginfo: fix sig_send call

Request __SIGPENDINGALL, not __SIGPENDING, when fetching signal info
for the calling process.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-03-02 09:47:38 +01:00
parent 312dc2289c
commit 42e23c5ad2
1 changed files with 1 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ _pinfo::siginfo (sigset_t &pnd, sigset_t &blk, sigset_t &ign)
}
else
{
pnd = sig_send (myself, __SIGPENDING, NULL);
pnd = sig_send (myself, __SIGPENDINGALL, NULL);
blk = cygheap->compute_sigblkmask ();
ign = 0;
for (int sig = 1; sig < NSIG; ++sig)