Skip to content

Commit 571fd97

Browse files
mbuechsegarloff
andcommitted
use correct exitcode upon ctrl-c
Co-authored-by: Kurt Garloff <[email protected]> Signed-off-by: Matthias Büchse <[email protected]>
1 parent ff8568d commit 571fd97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/add_subject.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import os.path
1212
import re
1313
import shutil
14+
import signal
1415
import subprocess
1516
import sys
1617

@@ -86,3 +87,4 @@ def main(argv, cwd):
8687
sys.exit(1)
8788
except KeyboardInterrupt:
8889
print("Interrupted", file=sys.stderr)
90+
sys.exit(128 + signal.SIGINT)

0 commit comments

Comments
 (0)