diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 23:22:25 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 23:22:25 +0400 |
commit | dcb091caaf9e00e840520141c1a74fb3f0eeb1d2 (patch) | |
tree | 483b37f8f41a0ce565559a2a5340f2fe5c3c9e57 /winsup/cygwin/pipe.cc | |
parent | 1204c515fe00335920c5707cc136e9562fd7cf38 (diff) |
Revert erroneous checkin.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index eb6287008..3407f0945 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -60,7 +60,7 @@ fhandler_pipe::open (int flags, mode_t mode) set_errno (EACCES); return 0; } - if (!cfd->dup (this, hMainProc)) + if (!cfd->dup (this)) return 1; return 0; } @@ -246,7 +246,7 @@ debug_printf ("here"); } int -fhandler_pipe::dup (fhandler_base *child, HANDLE from_proc) +fhandler_pipe::dup (fhandler_base *child) { int res = -1; fhandler_pipe *ftp = (fhandler_pipe *) child; @@ -254,14 +254,14 @@ fhandler_pipe::dup (fhandler_base *child, HANDLE from_proc) if (get_handle ()) { - res = fhandler_base::dup (child, from_proc); + res = fhandler_base::dup (child); if (res) goto err; } if (guard == NULL) ftp->guard = NULL; - else if (!DuplicateHandle (from_proc, guard, hMainProc, &ftp->guard, 0, 1, + else if (!DuplicateHandle (hMainProc, guard, hMainProc, &ftp->guard, 0, 1, DUPLICATE_SAME_ACCESS)) { debug_printf ("couldn't duplicate guard %p, %E", guard); @@ -270,7 +270,7 @@ fhandler_pipe::dup (fhandler_base *child, HANDLE from_proc) if (writepipe_exists == NULL) ftp->writepipe_exists = NULL; - else if (!DuplicateHandle (from_proc, writepipe_exists, hMainProc, + else if (!DuplicateHandle (hMainProc, writepipe_exists, hMainProc, &ftp->writepipe_exists, 0, 1, DUPLICATE_SAME_ACCESS)) { @@ -280,7 +280,7 @@ fhandler_pipe::dup (fhandler_base *child, HANDLE from_proc) if (read_state == NULL) ftp->read_state = NULL; - else if (!DuplicateHandle (from_proc, read_state, hMainProc, + else if (!DuplicateHandle (hMainProc, read_state, hMainProc, &ftp->read_state, 0, 0, DUPLICATE_SAME_ACCESS)) { |