From 222046d801632a4e4462920f3f99d4426d0f4cfd Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 16 Mar 2020 09:48:34 +0100 Subject: Use LOCK_EX to avoid log lines being split up --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index dabf74c..25834b3 100644 --- a/it.class +++ b/it.class @@ -104,7 +104,7 @@ static function log_line($name, $line) @symlink($fullfn, $basefn); } - it::file_put_contents($fullfn, $line . "\n", FILE_APPEND); + it::file_put_contents($fullfn, $line . "\n", FILE_APPEND | LOCK_EX); } } -- cgit v1.2.3