Skip to content

Commit db436dd

Browse files
mitchellgoffpcpull[bot]
authored andcommitted
exit if onnxmodel exec fails
1 parent 73fd6d1 commit db436dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

selfdrive/modeld/runners/onnxmodel.cc

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ ONNXModel::ONNXModel(const std::string path, float *_output, size_t _output_size
3535
close(pipeout[0]);
3636
close(pipeout[1]);
3737
execvp(onnx_runner.c_str(), argv);
38+
exit(1); // exit if the exec fails
3839
}
3940

4041
// parent

0 commit comments

Comments
 (0)