diff options
Diffstat (limited to 'sapi/phpdbg/phpdbg_io.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_io.c | 6 |
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; } |