Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!tut.cis.ohio-state.edu!ukma!husc6!zariski!moews From: moews@zariski (David Moews) Newsgroups: comp.unix.questions Subject: Waiting for a pty Summary: How? Message-ID: <1731@husc6.harvard.edu> Date: 1 May 89 19:46:17 GMT Sender: news@husc6.harvard.edu Reply-To: moews@zariski.harvard.edu (David Moews) Organization: Harvard University Department of Mathematics Lines: 11 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@zariski.harvard.edu