]> git.openstreetmap.org Git - nominatim.git/commitdiff
lock log file for writing
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 18 Apr 2015 16:41:13 +0000 (18:41 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 18 Apr 2015 16:41:13 +0000 (18:41 +0200)
lib/log.php

index 86d78cd2d123987cd892eb13f8590785b03fd90a..de19167bbb864294e07d8c0418ab51abe9fd7bf3 100644 (file)
@@ -68,7 +68,7 @@
                        $aOutdata = sprintf("[%s] %.4f %d %s \"%s\"\n",
                                            $hLog[0], $fEndTime-$hLog[5], $iNumResults,
                                            $hLog[4], $hLog[2]);
-                       file_put_contents(CONST_Log_File, $aOutdata, FILE_APPEND);
+                       file_put_contents(CONST_Log_File, $aOutdata, FILE_APPEND | LOCK_EX);
                }
 
        }