aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrtty3
1 files changed, 2 insertions, 1 deletions
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