summaryrefslogtreecommitdiffstats
path: root/src/session.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-18 12:07:41 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-18 12:07:41 (EST)
commit15c51e3d6e9c7b31a82e74988b3929ff0eb0f27a (patch)
tree747c851f08f854a5923a8f5646fa07afa001eb56 /src/session.sh
parent7831304e08e5a6092e4df7343f8e7de69decb69c (diff)
Add explicit returns to some functions
Diffstat (limited to 'src/session.sh')
-rw-r--r--src/session.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/session.sh b/src/session.sh
index 5390cf3..2ddf6ff 100644
--- a/src/session.sh
+++ b/src/session.sh
@@ -80,6 +80,8 @@ session_begin()
"${session_root}/prokit/sessions/${session_id}/wd"
mutex_unlock "${session_root}/prokit/sessions.lock"
+
+ return 0
}
session_end()
@@ -113,6 +115,8 @@ session_end()
mutex_unlock "${session_root}/prokit/sessions.lock"
trap - ${session_sigs}
+
+ return 0
}
session_id()
@@ -139,6 +143,8 @@ session_exec()
done
session_dir="/prokit/sessions/${session_id}/wd"
chroot "${session_root}" /bin/sh -c "cd ${session_dir}; ${args}"
+
+ return ${?}
}
session_mount()