diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-14 18:50:42 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-14 18:50:42 +0200 |
commit | fe9ba4f8f3c8b114aa32d81fefdc2cd1f4642600 (patch) | |
tree | f822fbd6223debb9d07a904337dd40cab41f03a0 | |
parent | 9f34ef6a0b1fd5545112498e2363d784cee8e42e (diff) | |
download | rtty-fe9ba4f8f3c8b114aa32d81fefdc2cd1f4642600.tar.gz |
rtty: Kill ssh on exit
-rwxr-xr-x | rtty | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |