From 1716e4b387e4a6aa210442963ba36013f61d1067 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 18 Apr 2015 18:41:13 +0200 Subject: [PATCH] lock log file for writing --- lib/log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log.php b/lib/log.php index 86d78cd2..de19167b 100644 --- a/lib/log.php +++ b/lib/log.php @@ -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); } } -- 2.39.5