Use -1 to indicate the pipe is not opened

0 can be a valid FD, this removes any ambiguity.