site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Icedove 1.5.0.9 (X11/20061220) Thomas,
which means that every time I read from masterA and write to masterB, masterB is then flagged as having input to be read... which means I get an infinite loop of data being copied back and forth. This happens every loop, no matter the delay between iterations (I'm running it inside Xcode). I am hoping this can be prevented, as there is no way to tell the difference between the master being ready to read because of input from the a client writing to the slave pty, or from app writing to that master file descriptor.
I have to assume that I'm missing some small detail. Pouring through Stevens' Advanced Programming in the UNIX Environment has not yet revealed any answers. Any ideas out there?
Configure both pty line disciplines to disable local echo? To do so, clear ECHO in c_lflag before calling tcsetattr(3)... -- hpreg _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Régis Duchesne