The OpenD Programming Language

Pipe.close

Closes both ends of the pipe.

Normally it is not necessary to do this manually, as std.stdio.File objects are automatically closed when there are no more references to them.

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.)

struct Pipe
@safe
void
close
()

Throws

std.exception.ErrnoException if an error occurs.

Meta