1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Fixed the fix in f68dc94aa7

This commit is contained in:
Xinchen Hui
2015-05-27 16:47:15 +08:00
parent 90df7e75e6
commit 151e52f6eb

View File

@@ -184,11 +184,9 @@ PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo) {
return phpdbg_consume_bytes(sock, ptr, len, tmo);
}
ret = read(sock, ptr, len);
if (ret == -1 && errno == EINTR) {
/* Read was interrupted, retry once */
do {
ret = read(sock, ptr, len);
}
} while (ret == -1 && errno == EINTR);
return ret;
}