From 2886e9f225d0263f3caa9dd0af912dd4a473fc44 Mon Sep 17 00:00:00 2001 From: mathiascode Date: Sat, 21 Sep 2019 16:56:10 +0300 Subject: [PATCH] Trap test --- bin/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start b/bin/start index 54fbaa4..51ba0b4 100755 --- a/bin/start +++ b/bin/start @@ -15,7 +15,7 @@ while true; do tmux new -d -s server 'sh -x script/server' >/dev/null tmux new -d -s remote 'sh -x script/remote' >/dev/null tmux new -d -s schematics 'sh -x script/schematics' >/dev/null - stty intr '' && ttyd -p $PORT tmux attach -t server + trap 'trap' SIGINT && ttyd -p $PORT tmux attach -t server sleep 5 done &