Skip to content

Commit

Permalink
exit if onnxmodel exec fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellgoffpc authored and pull[bot] committed Sep 18, 2023
1 parent 73fd6d1 commit db436dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/modeld/runners/onnxmodel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ONNXModel::ONNXModel(const std::string path, float *_output, size_t _output_size
close(pipeout[0]);
close(pipeout[1]);
execvp(onnx_runner.c_str(), argv);
exit(1); // exit if the exec fails
}

// parent
Expand Down

0 comments on commit db436dd

Please sign in to comment.