Waiting for a pty
David Moews
moews at zariski
Tue May 2 05:46:17 AEST 1989
I am running an interactive program with stdin, stdout & stderr all
set to the slave side of a pty (so it thinks it's in a terminal.) It
puts the terminal in raw mode. I want to wait until
my slave program is waiting for an input character from the terminal.
I tried select() on the master but that didn't work.
I also tried resetting the process group of the terminal and waiting
for the SIGTTIN but this seems to stall the slave process permanently.
What do I do? I am running under SunOS 4.0.
--
David Moews moews at zariski.harvard.edu
More information about the Comp.unix.questions
mailing list