Fixing non-determinism bug in shell tool
This commit is contained in:
@@ -131,7 +131,7 @@ Tool make_shell_tool() {
|
||||
|
||||
// Check exit code
|
||||
int status;
|
||||
waitpid(pid, &status, WNOHANG);
|
||||
waitpid(pid, &status, 0);
|
||||
|
||||
if (timed_out) {
|
||||
return "[timed out after " + std::to_string(timeout) + "s]\n" + output;
|
||||
|
||||
Reference in New Issue
Block a user