diff options
author | mahesh | 2017-04-13 09:41:43 +0530 |
---|---|---|
committer | mahesh | 2017-04-13 10:11:35 +0530 |
commit | 4ab90db99afafcf3d6ab91deeaf35e5f4874502b (patch) | |
tree | 139734db0d8a48bae48f44f9e602206738af8c00 /yaksh/base_evaluator.py | |
parent | de2a369a4908046eef41f01537fd39442e14365c (diff) | |
download | online_test-4ab90db99afafcf3d6ab91deeaf35e5f4874502b.tar.gz online_test-4ab90db99afafcf3d6ab91deeaf35e5f4874502b.tar.bz2 online_test-4ab90db99afafcf3d6ab91deeaf35e5f4874502b.zip |
added test case to check for stray processes
Diffstat (limited to 'yaksh/base_evaluator.py')
-rw-r--r-- | yaksh/base_evaluator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/base_evaluator.py b/yaksh/base_evaluator.py index 653aef0..e702f68 100644 --- a/yaksh/base_evaluator.py +++ b/yaksh/base_evaluator.py @@ -35,7 +35,7 @@ class BaseEvaluator(object): stdout, stderr = proc.communicate() except TimeoutException: # Runaway code, so kill it. - os.killpg(os.getpgid(proc.pid), signal.SIGTERM) + os.killpg(os.getpgid(proc.pid), signal.SIGKILL) # Re-raise exception. raise return proc, stdout.decode('utf-8'), stderr.decode('utf-8') |