From: Ken Hornstein Date: Thu, 18 May 2017 03:28:02 +0000 (-0400) Subject: After further reflection, I decided I didn't like that previous X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/fbb92a858ba6b30b8110c0f3aa05e9376e4fe418?ds=inline;hp=fbb92a858ba6b30b8110c0f3aa05e9376e4fe418 After further reflection, I decided I didn't like that previous implementation. Instead, allocate two ptys and connect one to standard input and the other to standard output and standard error of the child process. After the first data is received from the slave, close the master connected to standard input; that will generate an EOF on input to the child process. This ends up being much cleaner than looping and waiting to send the EOF character to the child process. ---