mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 06:35:04 +08:00
return 0 when O_NDELAY is set and there is nothing to read. We want the O_NONBLOCK behavior where read returns -1 and sets errno to EAGAIN when there is nothing to read.