Browse Source

^C handling introduced to monitor

Jiri Kuthan 23 years ago
parent
commit
18428a4686
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scripts/sc

+ 1 - 0
scripts/sc

@@ -428,6 +428,7 @@ case $1 in
 			echo "error opening read fifo $path"
 			exit 1
 		fi
+		trap "rm $path; echo sc monitor ^C-ed; exit 1" 2
 		attempt=0
 		clear
 		while [ 1 -eq 1 ]; do