CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2021/05/08 00:53:19

Modified files:
        regress/sys/kern/pipe: test-kqueue.c 

Log message:
Fix a race in the kqueue-read test. If the writer thread managed to fill
up the pipe buffer, it will hang in write(2) waiting for the pipe to
become writeable again. While doing so, it cannot observe that the
kqueue thread as already finished implying that ctx_thread_alive() would
return false, meaning no further writes are wanted.

Therefore open the pipe in non blocking mode and just ignore EAGAIN
errors while writing.

Reply via email to