]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add sig_intr(9).
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 4 Oct 2020 16:33:42 +0000 (16:33 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 4 Oct 2020 16:33:42 +0000 (16:33 +0000)
commit0400be45e92f6e1eeb5af59be779f62871b56f1b
treec0f87499e55a6b150bc91f9165e4fec7f7233a47
parent0c82fb267b8b26c02f8e313ebf6cc5103d40da3a
Add sig_intr(9).

It gives the answer would the thread sleep according to current state
of signals and suspensions.  Of course the answer is racy and allows
for false-negatives (no sleep when signal is delivered after process
lock is dropped).  Also the answer might change due to signal
rescheduling among threads in multi-threaded process.

Still it is the best approximation I can provide, to answering the
question was the thread interrupted.

Reviewed by: markj
Tested by: pho, rmacklem
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D26628
sys/kern/kern_sig.c
sys/sys/signalvar.h