exit if onnxmodel exec fails

This commit is contained in:
mitchellgoffpc
2023-08-21 19:22:47 -07:00
parent b24bbe4607
commit 8c478708ee
+1
View File
@@ -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