use same nonblock value for pipe2