Permalink
Browse files

kill everybody on ^C

  • Loading branch information...
1 parent 3ff9d87 commit 41f39bb8cc70e867ec0a81547319f7151b4341e9 @nbareil committed Feb 3, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 hybrid.py
View
@@ -624,5 +624,9 @@ def run(self):
tubelog = logging.getLogger("sandbox.tube")
sandbox = HybridSandbox()
- sandbox.run()
+ try:
+ sandbox.run()
+ except KeyboardInterrupt:
+ # kill all processes of my session group and myself
+ os.kill(0, 9)

0 comments on commit 41f39bb

Please sign in to comment.