Closing the stream forcing EOF, allows sending commands to the process