rw_enter() with RW_NOSLEEP returns EBUSY and not the expected EWOULDBLOCK
authorclaudio <claudio@openbsd.org>
Tue, 7 May 2024 15:54:23 +0000 (15:54 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 7 May 2024 15:54:23 +0000 (15:54 +0000)
commitdbd4c293c27d5c255f72e3fee044266016980dc8
tree318bc3d9dfcb9e94e31972c62892a9e7c4b01963
parent4670dd04fe6d0d097b58afdcea53907d19653010
rw_enter() with RW_NOSLEEP returns EBUSY and not the expected EWOULDBLOCK

This fixes random gmake failures during ports builds caused by:
   gmake[2]: *** read jobs pipe: Device busy.  Stop.
Fix verified by tb@ on his bulk build box
OK mvs@ tb@
sys/kern/uipc_socket2.c