Skip to content

Commit 360d8fe

Browse files
authored
DPL: improve message on quit (#14696)
1 parent 5b1b343 commit 360d8fe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Framework/Core/src/runDataProcessing.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,8 +2202,11 @@ int runStateMachine(DataProcessorSpecs const& workflow,
22022202
driverInfo.states.push_back(DriverState::RUNNING);
22032203
}
22042204
break;
2205-
case DriverState::QUIT_REQUESTED:
2206-
LOG(info) << "QUIT_REQUESTED";
2205+
case DriverState::QUIT_REQUESTED: {
2206+
std::time_t result = std::time(nullptr);
2207+
char buffer[32];
2208+
std::strncpy(buffer, std::ctime(&result), 26);
2209+
O2_SIGNPOST_EVENT_EMIT_INFO(driver, sid, "mainloop", "Quit requested at %{public}s", buffer);
22072210
guiQuitRequested = true;
22082211
// We send SIGCONT to make sure stopped children are resumed
22092212
killChildren(infos, SIGCONT);
@@ -2215,6 +2218,7 @@ int runStateMachine(DataProcessorSpecs const& workflow,
22152218
uv_timer_start(&force_step_timer, single_step_callback, 0, 300);
22162219
driverInfo.states.push_back(DriverState::HANDLE_CHILDREN);
22172220
break;
2221+
}
22182222
case DriverState::HANDLE_CHILDREN: {
22192223
// Run any pending libUV event loop, block if
22202224
// any, so that we do not consume CPU time when the driver is

0 commit comments

Comments
 (0)