Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <017701c0edfa$20f507b0$0100a8c0@TJC1LAPTOP> From: "Tim Chick" To: "Cygwin Users" References: <009201c0edcf$219b1a40$1201a8c0 AT winbox> <3B1CF258 DOT E41B9A09 AT yahoo DOT com> <00de01c0ede1$8eba4350$0100a8c0 AT TJC1LAPTOP> Subject: Re: inetd under Win95 OSR2.5 Date: Tue, 5 Jun 2001 21:00:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 ----- Original Message ----- From: "Tim Chick" To: "Cygwin Users" Sent: Tuesday, June 05, 2001 6:04 PM Subject: Re: inetd under Win95 OSR2.5 > I've just done some checking,at it appears that the following happens: > > inetd runs telnetd > telnetd performs a getpeername on stream 0 > > This call fails with the error 108 = ENOTSOCK > > So I guess there is some problem with mapping STDIN to a socket > on Win95 > > What else can I try? Anyone who understands this stuff have any > ideas? > > Tim It appears that: blah ns = accept(...) getpeername(ns, ...) -> Successful, and gets right answer dup2(ns,0) getpeername(0, ...) -> Fails with ENOTSOCK Thats about as far as I can get with this! I looked at the cygwin dll source, and it is way too scary :-) My guess is either SetStdHandle does not work for sockets under Win95, or the cygwin magic which figures out what a handle is before duplicating it is wrong. Anyone have any ideas? Tim -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple