Date: Thu, 17 Jul 2003 15:52:55 -0700 (PDT) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sig.c Message-ID: <200307172252.h6HMqtRv028716@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidxu 2003/07/17 15:52:55 PDT FreeBSD src repository Modified files: sys/kern kern_sig.c Log: Fix sigwait to conform to POSIX. When a signal is being delivered to process, first find a sigwait thread to deliver, POSIX's argument is speed of delivering signal to sigwait thread is faster than other ways. A signal in its wait set will cause sigwait to return the signal number, a signal not in its wait set but in not blocked by the thread also causes sigwait to return, but sigwait returns EINTR, sigwait is oneshot operation, only one signal can be delivered to its wait set, when a signal is delivered to the sigwait thread, the thread's sigwait state is canceled. Revision Changes Path 1.252 +109 -67 src/sys/kern/kern_sig.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307172252.h6HMqtRv028716>