Skip to content

Commit

Permalink
Communication tasks: always redirect stdin/stdout to fifo
Browse files Browse the repository at this point in the history
  • Loading branch information
underscore-j committed Sep 13, 2024
1 parent b17584f commit ee21518
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cms/grading/tasktypes/Communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ee21518

Please sign in to comment.