mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-23 18:22:13 +08:00
exit if onnxmodel exec fails
old-commit-hash: 8c478708ee53c7b473989cd48ac1fdad8702c372
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user