We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bc416 commit 82f4391Copy full SHA for 82f4391
src/execute.rs
@@ -154,7 +154,9 @@ pub fn execute(payload: ExecuteRequest) -> Result<ExecuteResponse> {
154
let command_output = run_command("./run", tmp_dir.path(), command_options)?;
155
156
let verdict = match command_output.exit_code {
157
- 124 => Verdict::TimeLimitExceeded,
+ // timeout exits with status 124. command_output.exit_code is a wait status.
158
+ // exit status 124 corresponds to wait status (124 << 8).
159
+ 31744 => Verdict::TimeLimitExceeded,
160
0 => Verdict::Accepted,
161
_ => Verdict::RuntimeError,
162
};
0 commit comments