From fe9ba4f8f3c8b114aa32d81fefdc2cd1f4642600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 18:50:42 +0200 Subject: rtty: Kill ssh on exit --- rtty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtty b/rtty index e796acb..3050280 100755 --- a/rtty +++ b/rtty @@ -8,4 +8,5 @@ rm $in $out 2>/dev/null mkfifo $in $out <$in 2>&1 >$out ssh -oBatchMode=yes -tt "$@" & -exec rio +trap "kill $! 2>/dev/null" INT QUIT EXIT +rio -- cgit v1.2.3