From 1319bf7d3b88095c8868c964f8716ae5c91e19ba Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 3 Dec 2026 16:49:51 +0100 Subject: [PATCH] DPL: do not handle a SIGCHLD before any device is spawned On macOS wordexp spawns a shell, so the driver can get a SIGCHLD while preparing the device arguments, after the handler is installed and before SCHEDULE. HANDLE_CHILDREN then blocked in uv_run with nothing to wake it, and the driver never started the devices. --- Framework/Core/src/runDataProcessing.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }