Browse code

^C handling introduced to monitor

Jiri Kuthan authored on 21/08/2002 08:26:53
Showing 1 changed files
... ...
@@ -428,6 +428,7 @@ case $1 in
428 428
 			echo "error opening read fifo $path"
429 429
 			exit 1
430 430
 		fi
431
+		trap "rm $path; echo sc monitor ^C-ed; exit 1" 2
431 432
 		attempt=0
432 433
 		clear
433 434
 		while [ 1 -eq 1 ]; do