summaryrefslogtreecommitdiff
path: root/yaksh/java_stdio_evaluator.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/java_stdio_evaluator.py')
-rw-r--r--yaksh/java_stdio_evaluator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/java_stdio_evaluator.py b/yaksh/java_stdio_evaluator.py
index 48f265d..4e9238f 100644
--- a/yaksh/java_stdio_evaluator.py
+++ b/yaksh/java_stdio_evaluator.py
@@ -67,7 +67,8 @@ class JavaStdIOEvaluator(StdIOEvaluator):
shell=True,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
- stderr=subprocess.PIPE
+ stderr=subprocess.PIPE,
+ preexec_fn=os.setpgrp
)
success, err = self.evaluate_stdio(self.user_answer, proc,
self.expected_input,