Skip to content

Commit

Permalink
fix: Use variable after moved. (#336)
Browse files Browse the repository at this point in the history
Signed-off-by: xiafeng <[email protected]>
  • Loading branch information
L-Xiafeng authored Oct 21, 2024
1 parent a5439e9 commit 4ff1241
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Craned/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,11 @@ void TaskManager::EvProcessSigchldCb_(int sig, short events, void* user_data) {

CRANE_ASSERT_MSG(sigchld_info->resend_timer != nullptr,
"Failed to create new timer.");

CRANE_TRACE("Child Process {} exit too early, will do SigchldCb later",
sigchld_info->pid);
arg->task_manager = this_;
arg->sigchld_info = std::move(sigchld_info);

CRANE_TRACE("Child Process {} exit too early, will do SigchldCb later",
sigchld_info->pid);
continue;
}

Expand Down

0 comments on commit 4ff1241

Please sign in to comment.