exit if onnxmodel exec fails

old-commit-hash: 8c478708ee
beeps
mitchellgoffpc 2 years ago
parent 69570ef251
commit b69de80962
  1. 1
      selfdrive/modeld/runners/onnxmodel.cc

@ -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

Loading…
Cancel
Save