delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/01/05:56:21

From: edudley AT servtech DOT com ("Eliot W Dudley")
Subject: Re: Select function call
1 Feb 1997 05:56:21 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199702011039.FAA22052.cygnus.gnu-win32@cyber3.servtech.com>
Mime-Version: 1.0
Original-To: <gnu-win32 AT cygnus DOT com>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1160
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Unfortunatey select(2), the foundation and sine qua non of event driven
Unix applications, is not yet fully implemented.  This wouldn't be so bad
if MS hadn't come along and polluted the entire BSD namespace with
marauding impostors.  Jeremy's (jra AT cynnus) select() in the CygWin32
release is the best I've seen so far, it's just not done yet.  I've been
trying to find the time to learn enough to help out in this area, but more
important issues like text vs. binary mode keep cropping up.

From  src/winsup/select.cc:

  /*
   * This is the tricky case. We have sockets and handles used, with
   * a timeout value. Win32 cannot select on both because of the accept
   * problem. We must spawn a thread to handle one of the waits and
   * cascade it up to the other wait.
   */
  /* FIXME !!!! For now just punt - write this SOON !!!! */    

> From: Ron Forrester <Ron AT OrCAD DOT com>
> 
> Someone else may confirm/deny this, but I believe select() is currently
> broken when used on different types of handles (i.e. combination of
> network and stdin for instance).
> 
> >From:	Larry Gerhardstein [SMTP:larry AT 3-cities DOT com]
> >
> >Does the select() function call work in Cygnus?  According to online
> >information and FAQ, I am led to believe it should.
> >
> >A program which I am attempting to port to Cygnus calls select() to
> >multiplex standard-in and a network socket.  The network connect, and
> >I/O over the socket works.  However, the value returned by select()
> >always is -1 and the value in errno is 1 (EPERM), both on NT 3.51 and

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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