From fd1ddad98df45bc3c18be7980c1cbe68ce6b219c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 26 Sep 2020 14:18:01 +0200 Subject: Add mutex on datastore I/O operations To make sure that there is no concurrent operation on the datastore file. Fixes #1132 --- init.php | 1 + 1 file changed, 1 insertion(+) (limited to 'init.php') diff --git a/init.php b/init.php index f0b84368..ab0e4ea7 100644 --- a/init.php +++ b/init.php @@ -60,6 +60,7 @@ ini_set('session.use_only_cookies', 1); ini_set('session.use_trans_sid', false); define('SHAARLI_VERSION', ApplicationUtils::getVersion(__DIR__ .'/'. ApplicationUtils::$VERSION_FILE)); +define('SHAARLI_MUTEX_FILE', __FILE__); session_name('shaarli'); // Start session if needed (Some server auto-start sessions). -- cgit v1.2.3