Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 0bbe68d

Browse files
committed
Codejudge Compiler server now sends status code for a timeout
1 parent 779fcca commit 0bbe68d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codejudge-compiler/src/codejudge/compiler/RequestThread.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ else if(lang.equals("python"))
6767
if(!errors.equals("")) { // check for compilation errors
6868
out.println("0");
6969
out.println(errors);
70-
} else {
70+
} else if(l.timedout)
71+
out.println("2");
72+
else {
7173
// execute the program and return output
7274
l.execute();
7375
out.println("1");

0 commit comments

Comments
 (0)