This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenSSH and WinCVS in Windows 9x


> The problem is not in cygwin.  If you are communicating with pipes
> between non-cygwin application and a cygwin application and expecting
> EOF notification on pipes you are not going to get it.  Microsoft
> doesn't provide any reliable way of finding that information on Windows
> 9x.

That's bad news :-(

From the cygwin code (peek_pipe@select.cc), I assume that PeekNamedPipe 
returns a negative value for lpTotalBytesAvail on EOF in win2k, and 0 in 
win9x.

I'll write a simple application to check that tomorrow.

BTW I looked at the putty code, and it uses a thread to read from stdin.

Well, I still think it should be possible to get notified of such an event. 
feof() from mscvrt manages to do so...

Laurent Pinchart


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]