From ee21518c8327f53a4dbb18e404a93833426a3df7 Mon Sep 17 00:00:00 2001 From: underscore_j Date: Fri, 13 Sep 2024 19:15:29 +0200 Subject: [PATCH] Communication tasks: always redirect stdin/stdout to fifo --- cms/grading/tasktypes/Communication.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cms/grading/tasktypes/Communication.py b/cms/grading/tasktypes/Communication.py index 0783e86ff..1fdd59732 100644 --- a/cms/grading/tasktypes/Communication.py +++ b/cms/grading/tasktypes/Communication.py @@ -384,9 +384,8 @@ def evaluate(self, job, file_cacher): if self._uses_fifos(): args.extend([sandbox_fifo_manager_to_user[i], sandbox_fifo_user_to_manager[i]]) - else: - stdin_redirect = sandbox_fifo_manager_to_user[i] - stdout_redirect = sandbox_fifo_user_to_manager[i] + stdin_redirect = sandbox_fifo_manager_to_user[i] + stdout_redirect = sandbox_fifo_user_to_manager[i] if self.num_processes != 1: args.append(str(i)) if self._uses_stub():