From 151e52f6eb2cf378ea30b4b53bb5afc4a5e6ec99 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 27 May 2015 16:47:15 +0800 Subject: Fixed the fix in f68dc94aa727085040650b4c9354672f2f62ee6a --- sapi/phpdbg/phpdbg_io.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sapi/phpdbg/phpdbg_io.c') 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; } -- cgit v1.2.1