From 41d0e0b723ecbbfbc2671f715afa2f04c3be89da Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 26 Sep 2025 12:03:47 +0200 Subject: [PATCH] DPL: improve message on quit --- Framework/Core/src/runDataProcessing.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Framework/Core/src/runDataProcessing.cxx b/Framework/Core/src/runDataProcessing.cxx index a343637080da1..ae6ea03063dfc 100644 --- a/Framework/Core/src/runDataProcessing.cxx +++ b/Framework/Core/src/runDataProcessing.cxx @@ -2202,8 +2202,11 @@ int runStateMachine(DataProcessorSpecs const& workflow, driverInfo.states.push_back(DriverState::RUNNING); } break; - case DriverState::QUIT_REQUESTED: - LOG(info) << "QUIT_REQUESTED"; + case DriverState::QUIT_REQUESTED: { + std::time_t result = std::time(nullptr); + char buffer[32]; + std::strncpy(buffer, std::ctime(&result), 26); + O2_SIGNPOST_EVENT_EMIT_INFO(driver, sid, "mainloop", "Quit requested at %{public}s", buffer); guiQuitRequested = true; // We send SIGCONT to make sure stopped children are resumed killChildren(infos, SIGCONT); @@ -2215,6 +2218,7 @@ int runStateMachine(DataProcessorSpecs const& workflow, uv_timer_start(&force_step_timer, single_step_callback, 0, 300); driverInfo.states.push_back(DriverState::HANDLE_CHILDREN); break; + } case DriverState::HANDLE_CHILDREN: { // Run any pending libUV event loop, block if // any, so that we do not consume CPU time when the driver is