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>2002-11-15 21:58:12 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-15 21:58:12 +0300
commit4b9ddc7dc9901970ca84b12289ba5d274cd15f3d (patch)
tree02a6532bce502100465d7fc5c9456ac9ea218aa7
parent26eb19efe4f47b5143a7083377f069801adefaf7 (diff)
* select.cc (peek_serial): Don't call PurgeComm() to avoid characters loss.
-rw-r--r--winsup/cygwin/ChangeLog9
-rw-r--r--winsup/cygwin/select.cc4
2 files changed, 7 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bb59e87e4..3966a8575 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-15 Sergey Okhapkin <sos@prospect.com.ru>
+
+ * select.cc (peek_serial): Don't call PurgeComm() to avoid characters
+ loss.
+
2002-11-14 Christopher Faylor <cgf@redhat.com>
* exceptions.cc (setup_handler): Add debugging output. Set thread
@@ -59,9 +64,9 @@
* sec_helper (cygsid::getfromstr): Reorganize to remove
calls to strcpy and strtok_r.
(cygsid::getfromgr): Change type to __uid32_t instead of int.
- Keep only the allow_ntsec branch. Never call LookupAccountSid
+ Keep only the allow_ntsec branch. Never call LookupAccountSid
which calls PDCs, simply return -1 in case of failure.
- Use cygsid == instead of calling EqualSid and remove test
+ Use cygsid == instead of calling EqualSid and remove test
for NULL psid.
* security.h: Declare cygsid::getfromgr as __uid32_t.
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 2e1635b21..369bea90f 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -912,19 +912,15 @@ peek_serial (select_record *s, bool)
return s->read_ready = true;
select_printf ("got something");
}
- PurgeComm (h, PURGE_TXABORT | PURGE_RXABORT);
break;
case WAIT_OBJECT_0 + 1:
- PurgeComm (h, PURGE_TXABORT | PURGE_RXABORT);
select_printf ("interrupt");
set_sig_errno (EINTR);
ready = -1;
break;
case WAIT_TIMEOUT:
- PurgeComm (h, PURGE_TXABORT | PURGE_RXABORT);
break;
default:
- PurgeComm (h, PURGE_TXABORT | PURGE_RXABORT);
debug_printf ("WaitForMultipleObjects");
goto err;
}