close


Description:

[ CCode ( cname = "pclose" ) ]
[ DestroysInstance ]
public int close ()

Explicitly close the pipe

Explicitly closing the pipe is only necessary when checking the termination status of the command language interpreter. Normally Vala will generate code to automatically close the pipe when the CommandPipe instance goes out of scope

CommandPipe.close () is synchronous and will return when the child process has terminated

Returns:

The termination status of the command language interpreter or -1 if status could not be obtained. errno will be set if -1