From 299dc5ba1a7994e663fc8da6544d82d8c596304c Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Mon, 25 Dec 2023 18:45:40 -0500 Subject: [PATCH] wip --- dmoj/graders/base.py | 1 + dmoj/graders/standard.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dmoj/graders/base.py b/dmoj/graders/base.py index 29840e311..96e32fc59 100644 --- a/dmoj/graders/base.py +++ b/dmoj/graders/base.py @@ -11,6 +11,7 @@ def __init__(self, judge, problem, language, source): self.binary = self._generate_binary() self.run_pretests_only = self.problem.meta.pretests_only self._abort_requested = False + self._current_proc = None self._batch_counter = 0 self._testcase_counter = 0 diff --git a/dmoj/graders/standard.py b/dmoj/graders/standard.py index d093a0614..ab3bd2925 100644 --- a/dmoj/graders/standard.py +++ b/dmoj/graders/standard.py @@ -76,7 +76,7 @@ def check_result(self, case, result): return check def _launch_process(self, case): - self.binary.launch( + self._current_proc = self.binary.launch( time=self.problem.time_limit, memory=self.problem.memory_limit, symlinks=case.config.symlinks,