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>2001-04-01 02:13:02 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-01 02:13:02 +0400
commitab57d1463946e37a5b7ce25498b3b42c3f617666 (patch)
treeb5fbbf97c6e5298faff0a59e0f6eb061412e7224
parent0cec3226033f2176959527256d6742fcf55e3417 (diff)
* fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles with
ForceCloseHandle or suffer spurious warnings.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_serial.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 734ebb12b..bede4b673 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Sat Mar 31 17:12:08 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * fhandler_serial.cc (fhandler_serial::raw_write): Close protected
+ handles with ForceCloseHandle or suffer spurious warnings.
+
Sat Mar 31 16:23:32 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index 827851b13..fcf47719c 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -188,13 +188,13 @@ fhandler_serial::raw_write (const void *ptr, size_t len)
break;
}
- CloseHandle(write_status.hEvent);
+ ForceCloseHandle(write_status.hEvent);
return bytes_written;
err:
__seterrno ();
- CloseHandle(write_status.hEvent);
+ ForceCloseHandle(write_status.hEvent);
return -1;
}