Cygwin: sigpending: don't report pending signals for other threads

The sigpending mechanism failed to check if the pending signal was a
process-wide signal, or a signal for the curent thread.  Fix that by
adding a matching conditional to wait_sig's __SIGPENDING code.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-07-12 17:18:48 +02:00
parent 948d40e482
commit bae987be12
2 changed files with 10 additions and 2 deletions

View File

@ -37,3 +37,6 @@ Bug Fixes
- Fix a timerfd deadlock.
Addresses: https://cygwin.com/ml/cygwin/2019-06/msg00096.html
- Fix sigpending() incorrectly returning signals for unrelated threads.
Addresses: https://cygwin.com/ml/cygwin/2019-07/msg00051.html