Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Framework/Core/src/runDataProcessing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down