www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/11/13:36:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 11 Dec 2000 13:36:05 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Why does scp leave ssh running? -- select() never returns
Message-ID: <20001211133605.B7497@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <3A22C383 DOT 5C16BBC8 AT delcomsys DOT com> <3A25C7DA DOT 6F76C8DA AT delcomsys DOT com> <20001129224015 DOT B21867 AT redhat DOT com> <3A266130 DOT F5877EB5 AT delcomsys DOT com> <3A271DCD DOT 99BDDBF5 AT delcomsys DOT com> <20001202200832 DOT A18661 AT redhat DOT com> <3A29C260 DOT 1C491A30 AT delcomsys DOT com> <20001202233944 DOT A19867 AT redhat DOT com> <3A2A16B5 DOT E1C3F9F4 AT redhat DOT com> <3A351ADE DOT EF54C845 AT delcomsys DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <3A351ADE.EF54C845@delcomsys.com>; from wpd@delcomsys.com on Mon, Dec 11, 2000 at 01:20:14PM -0500

On Mon, Dec 11, 2000 at 01:20:14PM -0500, Patrick Doyle wrote:
>So far, the most elegant solution I have come up with is to reimplement
>'select()' so that it calls 'ReadFileEx()' with a suitable 'OVERLAPPED'
>structure, thus eliminating the separate thread that wakes up every 10
>ms.  Of course, if I read a byte from the pipe, I would have to buffer
>it somewhere and fix 'read()' so that it checks for the "readahead" byte
>first, but that is basically solvable.  If the call to 'select()'
>returned for some other reason (i.e. another fd was made ready), then
>call 'CancelIo()' to terminate the asynchronous read.

I'm pretty sure that overlapped I/O does not work with any flavor of pipe.
It should be possible to make a simple test case, to verify though.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019