diff --git a/Framework/Core/src/runDataProcessing.cxx b/Framework/Core/src/runDataProcessing.cxx index 98da004e68a6f..8ff8049a50ec8 100644 --- a/Framework/Core/src/runDataProcessing.cxx +++ b/Framework/Core/src/runDataProcessing.cxx @@ -1585,8 +1585,9 @@ int runStateMachine(DataProcessorSpecs const& workflow, driverInfo.states.push_back(DriverState::QUIT_REQUESTED); } // If one of the children dies and sigint was not requested - // we should decide what to do. - if (sigchld_requested == true && driverInfo.sigchldRequested == false) { + // we should decide what to do. A SIGCHLD before any device is spawned + // (e.g. from the shell wordexp uses on macOS) is kept for later. + if (sigchld_requested == true && driverInfo.sigchldRequested == false && !infos.empty()) { driverInfo.sigchldRequested = true; driverInfo.states.push_back(DriverState::HANDLE_CHILDREN); }