From db436ddddac9b16d45bd54f970082cfa2a024b14 Mon Sep 17 00:00:00 2001 From: mitchellgoffpc Date: Mon, 21 Aug 2023 19:22:47 -0700 Subject: [PATCH] exit if onnxmodel exec fails --- selfdrive/modeld/runners/onnxmodel.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/modeld/runners/onnxmodel.cc b/selfdrive/modeld/runners/onnxmodel.cc index 48c16457fd9cd6..9e8d306b76b773 100644 --- a/selfdrive/modeld/runners/onnxmodel.cc +++ b/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