delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/15/17:43:57

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sat, 15 Jul 2000 17:43:20 -0400
To: cygwin AT sources DOT redhat DOT com
Subject: Re: read(0) when stdin is a Windows socket handle returning EACCES
Message-ID: <20000715174320.A2485@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <1DB8BA4BAC88D3118B2300508B5A552CD9275B AT mail DOT fitlinxx DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <1DB8BA4BAC88D3118B2300508B5A552CD9275B@mail.fitlinxx.com>; from db3l@fitlinxx.com on Fri, Jul 14, 2000 at 03:54:54AM -0400

On Fri, Jul 14, 2000 at 03:54:54AM -0400, David Bolen wrote:
>I'm running into a strange issue with read() failing to read from stdin when
>stdin is a socket connection that I was hoping someone might be able to
>offer any suggestions on how to further diagnose.
>[snip]
>I haven't been able to get strace to work within the server environment
>(e.g., trying to get the server to execute strace which is executing the
>test code) and an strace of the above code on its own of course works fine.

In that case, I'd suggest that you use gdb, like you would on UNIX.  You
can attach to a running process using the Windows pid which is displayed
by 'ps -lf'.

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