summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2020-03-16 09:48:34 +0100
committerChristian Schneider2020-03-16 09:48:34 +0100
commit222046d801632a4e4462920f3f99d4426d0f4cfd (patch)
treeffbc29b554338812a024a83d5446ff2d1bb532b4 /it.class
parent5d9bf1534f8bd6e277f7f7e45310e028e3f2cca6 (diff)
downloaditools-222046d801632a4e4462920f3f99d4426d0f4cfd.tar.gz
itools-222046d801632a4e4462920f3f99d4426d0f4cfd.tar.bz2
itools-222046d801632a4e4462920f3f99d4426d0f4cfd.zip
Use LOCK_EX to avoid log lines being split up
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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);
}
}