]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r225894:
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Oct 2011 13:03:14 +0000 (13:03 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 10 Oct 2011 13:03:14 +0000 (13:03 +0000)
commit17ae66f5673e641b4ebd28e21754fb0e4bef4bed
tree80be7bd11e6169cf5f0470e16c761d9cad3749f4
parentf995c52e373495d4b4d211e044481a0f20615f6d
MFC r225894:
The sigwait(3) function shall not return EINTR, according to the
POSIX/SUSvN. The sigwait(2) syscall does return EINTR, and libc.so.7
contains the wrapper sigwait(3) which hides EINTR from callers.  The
EINTR return is used by libthr to handle required cancellation point
in the sigwait(3).

To help the binaries linked against pre-libc.so.7, i.e. RELENG_6 and
earlier, to have right ABI for sigwait(3), transform EINTR return from
sigwait(2) into ERESTART.

git-svn-id: svn://svn.freebsd.org/base/stable/8@226205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_sig.c
sys/sys/param.h