Skip to content

Commit 93f05c3

Browse files
committed
Address review comments.
1 parent 7b242cd commit 93f05c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

judge/runpipe.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +919,11 @@ struct state_t {
919919
if (errno != EAGAIN && errno != EWOULDBLOCK) {
920920
error(errno, "failed to read from tle pipe");
921921
}
922+
} else if (buffer[0] == 42) {
923+
logmsg(LOG_WARNING, "child indicated TLE");
924+
child_indicated_timelimit = true;
925+
continue;
922926
}
923-
logmsg(LOG_WARNING, "child indicated TLE");
924-
child_indicated_timelimit = true;
925-
continue;
926927
}
927928

928929

0 commit comments

Comments
 (0)