From: Dees, I. <Ian...@an...> - 2004-03-15 17:36:58
|
Hello, Rolf. > Windows ReadFile will indeed not work the same as in non overlapped > mode it will just block until the data it wants arrives or the pipe > gets an error such as being closed on the other side. I've even seen situations where ReadFile blocks indefinitely, even after the other end of the pipe was closed. That was plaguing us on the TortoiseCVS project; in fact, we had to start another thread to handle pipe I/O, so that we could kill it if there was nothing to read (which happens with CVS in some cases, even some non-error ones). --Ian |