Permalink
Browse files

Update threads.sh

  • Loading branch information...
1 parent f1af38d commit 7733a08f21ab32a0ded4ba091904ec0a76cd9d24 @soarpenguin committed Dec 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 bashrc/threads.sh
View
@@ -16,6 +16,7 @@ mkfifo ${tmp_file}
exec 9<>${tmp_file}
#trap "rm -f ${tmp_file}; exit" INT TERM EXIT
+trap 'rm -f "${tmp_file}"; exit $?' INT TERM EXIT
for ((i=0;i<${g_THREAD_NUM};i++))
do

0 comments on commit 7733a08

Please sign in to comment.