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 /winsup/cygwin/fhandler_serial.cc
parent0cec3226033f2176959527256d6742fcf55e3417 (diff)
* fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles with
ForceCloseHandle or suffer spurious warnings.
Diffstat (limited to 'winsup/cygwin/fhandler_serial.cc')
-rw-r--r--winsup/cygwin/fhandler_serial.cc4
1 files changed, 2 insertions, 2 deletions
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;
}