aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-30 20:05:20 +0200
committerEli Zaretskii2016-01-30 20:05:20 +0200
commit39b166fc43a37d1731a194c06deacba571894847 (patch)
treed0dcea843957b1aa23327ec1328670db9606e4a3 /src
parent9fd01893372e3cb8a6ef1fb2b47b10204d633a93 (diff)
downloademacs-39b166fc43a37d1731a194c06deacba571894847.tar.gz
emacs-39b166fc43a37d1731a194c06deacba571894847.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index 067bb3d7cad..fbcfb970337 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -8369,7 +8369,17 @@ sys_read (int fd, char * buffer, unsigned int count)
8369 8369
8370 case STATUS_READ_READY: 8370 case STATUS_READ_READY:
8371 case STATUS_READ_IN_PROGRESS: 8371 case STATUS_READ_IN_PROGRESS:
8372 DebPrint (("sys_read called when read is in progress\n")); 8372#if 0
8373 /* This happens all the time during GnuTLS handshake
8374 with the remote, evidently because GnuTLS waits for
8375 the read to complete by retrying the read operation
8376 upon EAGAIN. So I'm disabling the DebPrint to avoid
8377 wasting cycles on something that is not a real
8378 problem. Enable if you need to debug something that
8379 bumps into this. */
8380 DebPrint (("sys_read called when read is in progress %d\n",
8381 current_status));
8382#endif
8373 errno = EWOULDBLOCK; 8383 errno = EWOULDBLOCK;
8374 return -1; 8384 return -1;
8375 8385