summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_io.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-05-27 16:47:15 +0800
committerXinchen Hui <laruence@php.net>2015-05-27 16:47:15 +0800
commit151e52f6eb2cf378ea30b4b53bb5afc4a5e6ec99 (patch)
tree0c8d1cc7104e27f4ca34f49645fd37c4302eabf3 /sapi/phpdbg/phpdbg_io.c
parent90df7e75e6b1ca301d053cbe6d1dee66c586ecb8 (diff)
downloadphp-git-151e52f6eb2cf378ea30b4b53bb5afc4a5e6ec99.tar.gz
Fixed the fix in f68dc94aa727085040650b4c9354672f2f62ee6a
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.c')
-rw-r--r--sapi/phpdbg/phpdbg_io.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sapi/phpdbg/phpdbg_io.c b/sapi/phpdbg/phpdbg_io.c
index 47899abf66..70709eadc1 100644
--- a/sapi/phpdbg/phpdbg_io.c
+++ b/sapi/phpdbg/phpdbg_io.c
@@ -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;
}