Bugzilla – Attachment 673 Details for
Bug 1603
Windows: sp_[blocking|nonblocking]_read may fail when last call was from thread that has no exited
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Windows: don't fail if WaitCommEvent was aborted due to thread exit
libserialport_1603.patch (text/plain), 555 bytes, created by
Christian Seiler
on 2020-09-08 12:38:34 CEST
(
hide
)
Description:
Windows: don't fail if WaitCommEvent was aborted due to thread exit
Filename:
MIME Type:
Creator:
Christian Seiler
Created:
2020-09-08 12:38:34 CEST
Size:
555 bytes
patch
obsolete
>diff --git a/serialport.c b/serialport.c >index 1daba1c..4a2fc59 100644 >--- a/serialport.c >+++ b/serialport.c >@@ -428,6 +428,9 @@ static enum sp_return restart_wait(struct sp_port *port) > &wait_result, FALSE)) { > DEBUG("Previous wait completed"); > port->wait_running = FALSE; >+ } else if (GetLastError() == ERROR_OPERATION_ABORTED) { >+ DEBUG("Previous wait ended due to previous thread exiting"); >+ port->wait_running = FALSE; > } else if (GetLastError() == ERROR_IO_INCOMPLETE) { > DEBUG("Previous wait still running"); > RETURN_OK();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1603
:
671
|
672
| 673 |
739