mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-07 20:59:37 +00:00
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.
This commit is contained in:
parent
9fd0189337
commit
39b166fc43
1 changed files with 11 additions and 1 deletions
12
src/w32.c
12
src/w32.c
|
@ -8369,7 +8369,17 @@ sys_read (int fd, char * buffer, unsigned int count)
|
||||||
|
|
||||||
case STATUS_READ_READY:
|
case STATUS_READ_READY:
|
||||||
case STATUS_READ_IN_PROGRESS:
|
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;
|
errno = EWOULDBLOCK;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue