After the slave end is used (
close()), the master's
read() finishes and returns with an EIO error. But I was expecting to be able to
close() multiple times the slave end without disrupting the master fd.
Is it possible to keep the two ends valid after the slave's
close()? How can I keep my "master" program running when the slave end is closed? Am I supposed to re-run to entire
grantpt(); unlockpt(); ptsname(); sequence?