PIPE_CLOSED
if (rpb->state & PIPE_CLOSED) {
atomic_set_int(&rpb->state, PIPE_CLOSED | PIPE_REOF | PIPE_WEOF);
if (wpb->state & PIPE_CLOSED) {