Janine Sisk wrote:
I did find that it does not seem to be possible to open a pipe for both reading and writing. I tried it and was able to write data to the pipe (simulating stdin) but my read from the same channel just hung. Reading from the channel does work if it is opened only for reading.
Opening a pipe for both reading and writing does work, but buffering and eof handling can trip you up. Buffering can be turned off with fconfigure or you can explicitly fflush, but eof isn't so simple to deal with - if your inferior process waits for EOF before writing anything then it will get stuck because there is no way to half-close the pipe. If the inferior process writes as soon as it has data available then it will likely work ok. (Incidentally, I asked about this exact same issue about a week ago and got no response; I think it got lost in all the debate about trac).
-J -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
