浏览代码

Make benchmark script exit on keyboard interrupt

Taddeus Kroes 7 年之前
父节点
当前提交
76458cb17f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      runall.sh

+ 1 - 0
runall.sh

@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 interp=${1-python3}
+trap exit SIGINT
 i=1
 for f in *.py
 do