recheck cancellation disabled flag after syscall returns EINTR
authorRich Felker <dalias@aerifal.cx>
Tue, 19 Apr 2011 00:50:37 +0000 (20:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 19 Apr 2011 00:50:37 +0000 (20:50 -0400)
commitbe2e06d347fdb83e9c4f57e57fa29b78f6276a0c
tree50a11b3a75d17a6c2da781804c0a03165899ee3d
parent61b56a8d2151a60ec67a459a9d325b29c5dc3b41
recheck cancellation disabled flag after syscall returns EINTR

we already checked before making the syscall, but it's possible that a
signal handler interrupted the blocking syscall and disabled
cancellation, and that this is the cause of EINTR. in this case, the
old behavior was testably wrong.
src/thread/cancel_impl.c