read(0) when stdin is a Windows socket handle returning EACCES

Chris Faylor cgf@cygnus.com
Sat Jul 15 14:43:00 GMT 2000


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@sourceware.cygnus.com



More information about the Cygwin mailing list