diff options
author | Christopher Faylor <me@cgf.cx> | 2005-04-17 00:12:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-04-17 00:12:14 +0000 |
commit | 4a08e9bce480de0e80caca9f6299a2e33613997c (patch) | |
tree | 98bb99ee5c6de4004d707bb5adcb2f32b9c4b4e7 /winsup/cygwin/fhandler_fifo.cc | |
parent | 73b4949a87e246ea9bdc1286c8d057a0717cb3d4 (diff) | |
download | cygnal-4a08e9bce480de0e80caca9f6299a2e33613997c.tar.gz cygnal-4a08e9bce480de0e80caca9f6299a2e33613997c.tar.bz2 cygnal-4a08e9bce480de0e80caca9f6299a2e33613997c.zip |
Actually check in files.
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r-- | winsup/cygwin/fhandler_fifo.cc | 6 |
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; |