diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 19:22:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-28 19:22:25 +0000 |
commit | dcb091caaf9e00e840520141c1a74fb3f0eeb1d2 (patch) | |
tree | 483b37f8f41a0ce565559a2a5340f2fe5c3c9e57 /winsup/cygwin/fhandler_tape.cc | |
parent | 1204c515fe00335920c5707cc136e9562fd7cf38 (diff) | |
download | newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.zip newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.tar.gz newlib-dcb091caaf9e00e840520141c1a74fb3f0eeb1d2.tar.bz2 |
Revert erroneous checkin.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tape.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc index a0ab474..d3fd3ee 100644 --- a/winsup/cygwin/fhandler_tape.cc +++ b/winsup/cygwin/fhandler_tape.cc @@ -1442,11 +1442,11 @@ fhandler_dev_tape::fstat (struct __stat64 *buf) } int -fhandler_dev_tape::dup (fhandler_base *child, HANDLE from_proc) +fhandler_dev_tape::dup (fhandler_base *child) { lock (-1); fhandler_dev_tape *fh = (fhandler_dev_tape *) child; - if (!DuplicateHandle (from_proc, mt_mtx, hMainProc, &fh->mt_mtx, 0, TRUE, + if (!DuplicateHandle (hMainProc, mt_mtx, hMainProc, &fh->mt_mtx, 0, TRUE, DUPLICATE_SAME_ACCESS)) { debug_printf ("dup(%s) failed, mutex handle %x, %E", @@ -1456,7 +1456,7 @@ fhandler_dev_tape::dup (fhandler_base *child, HANDLE from_proc) } fh->mt_evt = NULL; if (mt_evt && - !DuplicateHandle (from_proc, mt_evt, hMainProc, &fh->mt_evt, 0, TRUE, + !DuplicateHandle (hMainProc, mt_evt, hMainProc, &fh->mt_evt, 0, TRUE, DUPLICATE_SAME_ACCESS)) { debug_printf ("dup(%s) failed, event handle %x, %E", @@ -1464,7 +1464,7 @@ fhandler_dev_tape::dup (fhandler_base *child, HANDLE from_proc) __seterrno (); return unlock (-1); } - return unlock (fhandler_dev_raw::dup (child, from_proc)); + return unlock (fhandler_dev_raw::dup (child)); } void |