diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-31 22:13:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-31 22:13:02 +0000 |
commit | ab57d1463946e37a5b7ce25498b3b42c3f617666 (patch) | |
tree | b5fbbf97c6e5298faff0a59e0f6eb061412e7224 | |
parent | 0cec3226033f2176959527256d6742fcf55e3417 (diff) | |
download | newlib-ab57d1463946e37a5b7ce25498b3b42c3f617666.zip newlib-ab57d1463946e37a5b7ce25498b3b42c3f617666.tar.gz newlib-ab57d1463946e37a5b7ce25498b3b42c3f617666.tar.bz2 |
* fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles with
ForceCloseHandle or suffer spurious warnings.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_serial.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 734ebb1..bede4b6 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 827851b..fcf4771 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; } |