php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66227
Patch php-read-retry.diff revision 2013-12-03 18:12 UTC by bhiggins at arbor dot net

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);
 		}
 		
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 07:01:29 2024 UTC