Use O_NONBLOCK for pipes