From 1c6df13885687f4c3bc2504cbd9f33d98e1b8cb4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 07 Oct 2014 09:34:31 -0400 Subject: session_begin(): Make /prokit if it doesn't exist --- (limited to 'lib') 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 -- cgit v0.9.1