diff options
| author | Eli Zaretskii | 2016-01-30 20:05:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-30 20:05:20 +0200 |
| commit | 39b166fc43a37d1731a194c06deacba571894847 (patch) | |
| tree | d0dcea843957b1aa23327ec1328670db9606e4a3 /src | |
| parent | 9fd01893372e3cb8a6ef1fb2b47b10204d633a93 (diff) | |
| download | emacs-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.c | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -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 | ||