Patch php-read-retry.diff for Scripting Engine problem Bug #66227
Patch version 2013-12-03 18:12 UTC
Return to Bug #66227 |
Download this patch
Patch Revisions:
Developer: bhiggins@arbor.net
Index: main/streams/plain_wrapper.c
===================================================================
--- main/streams/plain_wrapper.c (revision 24259)
+++ main/streams/plain_wrapper.c (working copy)
@@ -348,10 +348,8 @@
if (data->fd >= 0) {
ret = read(data->fd, buf, count);
- if (ret == (size_t)-1 && errno == EINTR) {
- /* Read was interrupted, retry once,
- If read still fails, giveup with feof==0
- so script can retry if desired */
+ while (ret == (size_t)-1 && errno == EINTR) {
+ /* Read was interrupted, retry */
ret = read(data->fd, buf, count);
}
|