This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Changed fhandler_* read and raw_read methods throughout
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 13 Dec 2002 23:05:32 -0500
- Subject: Changed fhandler_* read and raw_read methods throughout
- Reply-to: cygwin-developers at cygwin dot com
To accommodate my recent pipe changes, I've changed all of the
fhandler_* read and raw_read methods. I've changed them to void
functions whose second parameter is both the length and the return
value.
I've done this so that if the ReadFile in raw_read succeeds but a signal
happens shortly thereafter, the number of bytes read will be available
to the caller even though the thread which did the read has been
terminated.
It's possible that I got one of the many fhandler functions wrong when I
went through making this change so if you see odd behavior this is the
place to check.
cgf