From 08b6fffc3638a06ee1dc7fe67fd8f7c708babeac Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 13 May 2014 23:17:05 +0200 Subject: [PATCH] break out of write loop when psql fails fixes hanging in --create-functions --- utils/setup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/setup.php b/utils/setup.php index 9e946035..e256289c 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -762,6 +762,7 @@ while(strlen($sScript)) { $written = fwrite($ahPipes[0], $sScript); + if ($written <= 0) break; $sScript = substr($sScript, $written); } fclose($ahPipes[0]); -- 2.39.5