Re: [mingw32] stdin redirection

Jerome Guitton
2007-04-13T11:47:39Z

Dave Korn (dave.korn@artimi.com):

> In some circumstances, you can also use a file, named pipe, or communications
> device as a synchronization object; however, their use for this purpose is
> discouraged. Instead, use asynchronous I/O and wait on the event object set in
> the OVERLAPPED structure. It is safer to use the event object because of the
> confusion that can occur when multiple simultaneous overlapped operations are
> performed on the same file, named pipe, or communications device. In this
> situation, there is no way to know which operation caused the object's state
> to be signaled.

So we should probably associate an event object to stdin in the file
case (just like what we do for ttys and pipes). I will allocate some
time to work on this on monday.