PTY's

Maarten Litmaath maart at cs.vu.nl
Thu Jul 26 10:24:46 AEST 1990


In article <5756:Jul2520:37:5490 at kramden.acf.nyu.edu>,
	brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
)...
)Convention dictates that the pty is used only until the child exits; [...]

Hmm, this seems normal behavior indeed, but in general I'd like _any_
pipeline using `pty' or `mtty' to work just like it would without using
the pseudo tty utility...  [Note: both `pty' and `mtty' close the pty if
the child exits.]

)...
)The master *can* handle the I/O while waiting for a SIGCHLD; it just
)mustn't die within the SIGCHLD handler.

That was not my problem; I was thinking of output getting lost without
proper indication how much has been written, but this can be fixed indeed
using restartable system calls.

)Look at the pty code [...]

I will.
--
 "and with a sudden plop it lands on usenet.  what is it? omigosh, it must[...]
   be a new user! quick kill it before it multiplies!"      (Loren J. Miller)



More information about the Comp.unix.questions mailing list