Closes both ends of the pipe.
void close() @safe;
Normally it is not necessary to do this manually, as
objects are automatically closed when there are no more references
Note that if either end of the pipe has been passed to a child process, it will only be closed in the parent process. (What happens in the child process is platform dependent.)
ErrnoException if an error occurs.