소스 검색

^C handling introduced to monitor

Jiri Kuthan 23 년 전
부모
커밋
18428a4686
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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