Skip to content

Commit ffe7c67

Browse files
authored
Only use new-session on systems with legacy_tiocsti enabled
#268
1 parent ed4ad80 commit ffe7c67

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

conty-start.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,11 @@ run_bwrap () {
654654
--tmpfs /var \
655655
--tmpfs /run \
656656
--symlink /run /var/run \
657-
--tmpfs /tmp \
658-
--new-session)
657+
--tmpfs /tmp)
658+
659+
if [ "$(cat /proc/sys/dev/tty/legacy_tiocsti 2>/dev/null)" != 0 ]; then
660+
sandbox_params+=(--new-session)
661+
fi
659662

660663
if [ -n "${non_standard_home[*]}" ]; then
661664
sandbox_params+=(--dir "${NEW_HOME}")

0 commit comments

Comments
 (0)