diff --git a/libraries/SITL/SIM_Vicon.cpp b/libraries/SITL/SIM_Vicon.cpp index aa7449614d..bd8e4b9294 100644 --- a/libraries/SITL/SIM_Vicon.cpp +++ b/libraries/SITL/SIM_Vicon.cpp @@ -29,7 +29,9 @@ using namespace SITL; Vicon::Vicon() { int tmp[2]; - pipe(tmp); + if (pipe(tmp) == -1) { + AP_HAL::panic("pipe() failed"); + } fd_my_end = tmp[1]; fd_their_end = tmp[0];