* fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles with
ForceCloseHandle or suffer spurious warnings.
This commit is contained in:
parent
0cec322603
commit
ab57d14639
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue