summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-01-22 21:43:25 +0000
committerChristopher Faylor <me@cgf.cx>2012-01-22 21:43:25 +0000
commit1ad58ee709ddae6cfde5c1677804fb951fa54e98 (patch)
tree561542c85a61b760866de2f2378d88e3f5c2db65 /winsup/cygwin/pipe.cc
parent5b09af7a51c8ccffe12c74fd9b1640c224687478 (diff)
downloadcygnal-1ad58ee709ddae6cfde5c1677804fb951fa54e98.tar.gz
cygnal-1ad58ee709ddae6cfde5c1677804fb951fa54e98.tar.bz2
cygnal-1ad58ee709ddae6cfde5c1677804fb951fa54e98.zip
* fhandler.h (fhandler_fifo::arm): Declare new function.
* fhandler_fifo.cc (fhandler_fifo::arm): Define new function. (fhandler_fifo::open): Fix handling of RDWR pipes to avoid opening a second handle. Use arm() function to set events. (fhandler_fifo::raw_read): Correctly go into "connect again logic" when we detect another writer is available. Use arm() function to set event. * pipe.cc (fhandler_pipe::create): Add more detail to debugging output.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 2f46a5358..6befd2222 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -1,7 +1,7 @@
/* pipe.cc: pipe for Cygwin.
Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- 2008, 2009, 2010, 2011 Hat, Inc.
+ 2008, 2009, 2010, 2011, 2011 Hat, Inc.
This file is part of Cygwin.
@@ -306,7 +306,7 @@ fhandler_pipe::create (LPSECURITY_ATTRIBUTES sa_ptr, PHANDLE r, PHANDLE w,
{
/* Failure. */
DWORD err = GetLastError ();
- debug_printf ("CreateFile failed, %E");
+ debug_printf ("CreateFile failed, r %p, %E", r);
if (r)
CloseHandle (*r);
*w = NULL;