summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-31 00:26:37 +0000
committerChristopher Faylor <me@cgf.cx>2011-05-31 00:26:37 +0000
commit106e3acf59e11aae4d0ffe97492f7d4ecd6db5cb (patch)
treebafe1167364fb4cf895c8b7c6609e70e1442aa5e /winsup/cygwin/pipe.cc
parentde3c57f06e3b8244c44e7203dc50cfad8a68f130 (diff)
downloadcygnal-106e3acf59e11aae4d0ffe97492f7d4ecd6db5cb.tar.gz
cygnal-106e3acf59e11aae4d0ffe97492f7d4ecd6db5cb.tar.bz2
cygnal-106e3acf59e11aae4d0ffe97492f7d4ecd6db5cb.zip
* dtable.cc (dtable::select_write): Add missing argument to debug_printf.
* fhandler.cc (fhandler_base_overlapped::setup_overlapped): Explicitly set io_pending to false. (fhandler_base_overlapped::has_ongoing_io): Call GetOverlappedResult to force completion of I/O. (fhandler_base_overlapped::wait_overlapped): Rewrite to correctly deal with nonblocking reads and to make more race proof. (fhandler_base_overlapped::raw_write): Deal with new enum values. (fhandler_base_overlapped::raw_read): Ditto. Don't deal with ongoing I/O here since it makes no sense in the read context. * fhandler.h (enum wait_return): Add overlapped_unknown, overlapped_nonblocking_no_data. * pipe.cc (pipe): Add debugging output.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 3995aa557..ba38252d7 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -378,6 +378,7 @@ pipe (int filedes[2])
fdout = fhs[1];
filedes[0] = fdin;
filedes[1] = fdout;
+ debug_printf ("%d, %d", (int) fdin, (int) fdout);
}
return res;