mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
break out of write loop when psql fails
fixes hanging in --create-functions
This commit is contained in:
parent
defb809b83
commit
08b6fffc36
@ -762,6 +762,7 @@
|
||||
while(strlen($sScript))
|
||||
{
|
||||
$written = fwrite($ahPipes[0], $sScript);
|
||||
if ($written <= 0) break;
|
||||
$sScript = substr($sScript, $written);
|
||||
}
|
||||
fclose($ahPipes[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user