X-Spam-Check-By: sourceware.org
Date: Mon, 9 Oct 2006 10:55:18 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: How to select on a win32 handle?
Message-ID: <20061009085518.GD13105@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20061007025233.GA24180@sellafield.lysator.liu.se>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20061007025233.GA24180@sellafield.lysator.liu.se>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Oct  7 04:52, Peter Ekberg wrote:
> Hello!
> 
> I'm finding that I have a need to select on a win32 handle. I found the
> function cygwin_attach_handle_to_fd which sounded promising, but I do
> not have any luck when I try to use it.

That won't work.  The Windows select function is only implemented for
sockets.  To implement a POSIX select function which allows to select on
any descriptor one needs to implement it specificially for each known,
resp. useful file type.  Naturally this won't work with a generic
Windows handle since Cygein doesn't know what it represents.  So Cygwin
is unable to provide a matching select function.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

