Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-04-17 04:12:14 +0400
committerChristopher Faylor <me@cgf.cx>2005-04-17 04:12:14 +0400
commit4a08e9bce480de0e80caca9f6299a2e33613997c (patch)
tree98bb99ee5c6de4004d707bb5adcb2f32b9c4b4e7 /winsup/cygwin/fhandler_fifo.cc
parent73b4949a87e246ea9bdc1286c8d057a0717cb3d4 (diff)
Actually check in files.
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 5431f1005..b654dc2dd 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -100,7 +100,7 @@ fhandler_fifo::open_not_mine (int flags)
__seterrno ();
goto out;
}
- if (!DuplicateHandle (hMainProc, fh->get_handle (), hMainProc,
+ if (!DuplicateHandle (hMainProc, fh->get_output_handle (), hMainProc,
&r.handles[1], 0, false, DUPLICATE_SAME_ACCESS))
{
CloseHandle (r.handles[0]);
@@ -146,14 +146,14 @@ fhandler_fifo::open (int flags, mode_t)
goto out;
fhandler_pipe *fhs[2];
- if (create (fhs, 0, flags, true))
+ if (create (fhs, 1, flags, true))
{
__seterrno ();
res = 0;
}
else
{
- set_flags (fhs[0]->get_flags ());
+ set_flags (flags);
set_io_handle (fhs[0]->get_handle ());
set_output_handle (fhs[1]->get_handle ());
guard = fhs[0]->guard;