Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" From: Laurent Pinchart Organization: Capflow To: cygwin AT cygwin DOT com Subject: Re: OpenSSH and WinCVS in Windows 9x Date: Thu, 8 Aug 2002 20:48:14 +0200 User-Agent: KMail/1.4.1 References: <20020806140534 DOT 757a155a DOT steven DOT obrien2 AT ntlworld DOT com> <200208081932 DOT 25737 DOT laurent DOT pinchart AT capflow DOT com> <20020808175335 DOT GG11425 AT redhat DOT com> In-Reply-To: <20020808175335.GG11425@redhat.com> MIME-Version: 1.0 Message-Id: <200208082048.14548.laurent.pinchart@capflow.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g78IkA908542 > 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 AT select DOT 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/