[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 39b166f: Disable DebPrint in sys_read on MS-Windo
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-25 39b166f: Disable DebPrint in sys_read on MS-Windows |
Date: |
Sat, 30 Jan 2016 18:06:36 +0000 |
branch: emacs-25
commit 39b166fc43a37d1731a194c06deacba571894847
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Disable DebPrint in sys_read on MS-Windows
* src/w32.c (sys_read): Disable a debugging print that is normal
when non-blocking reads are retried.
---
src/w32.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/w32.c b/src/w32.c
index 067bb3d..fbcfb97 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -8369,7 +8369,17 @@ sys_read (int fd, char * buffer, unsigned int count)
case STATUS_READ_READY:
case STATUS_READ_IN_PROGRESS:
- DebPrint (("sys_read called when read is in progress\n"));
+#if 0
+ /* This happens all the time during GnuTLS handshake
+ with the remote, evidently because GnuTLS waits for
+ the read to complete by retrying the read operation
+ upon EAGAIN. So I'm disabling the DebPrint to avoid
+ wasting cycles on something that is not a real
+ problem. Enable if you need to debug something that
+ bumps into this. */
+ DebPrint (("sys_read called when read is in progress %d\n",
+ current_status));
+#endif
errno = EWOULDBLOCK;
return -1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 39b166f: Disable DebPrint in sys_read on MS-Windows,
Eli Zaretskii <=