mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
066d836b02
well-known race condition, which elimination was the reason for the function appearance in first place. If sigmask supplied as argument to pselect() enables a signal, the signal might be delivered before thread called select(2), causing lost wakeup. Reimplement pselect() in kernel, making change of sigmask and sleep atomic. Since signal shall be delivered to the usermode, but sigmask restored, set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK should be cleared by ast() in case signal was not gelivered during syscall execution. Reviewed by: davidxu Tested by: pho MFC after: 1 month |
||
---|---|---|
.. | ||
arch | ||
support | ||
sys | ||
thread | ||
libthr.3 | ||
Makefile | ||
pthread.map |