summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/session.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/session.sh b/lib/session.sh
index f0ec186..5aad176 100644
--- a/lib/session.sh
+++ b/lib/session.sh
@@ -48,6 +48,8 @@ session_begin()
session_mountdir="${mountdir}"
session_atexit="${atexit}"
+ [ -d "${session_root}/prokit" ] || mkdir "${session_root}/prokit"
+
if ! mutex_lock_timeout "${session_root}/prokit/sessions.lock" 5; then
error 2 "$(get_msg 'cant_lock_sessions')"
fi