Fix a bunch of variable shadowing issues from LGTM

This commit is contained in:
Tim Wojtulewicz 2022-11-02 15:54:51 -07:00
parent f8eb2d9241
commit e8dbfc1cb0
10 changed files with 28 additions and 27 deletions

View file

@ -1173,8 +1173,8 @@ std::optional<SupervisorStemHandle> Supervisor::CreateStem(bool supervisor_mode)
ss.pipe = std::make_unique<detail::PipePair>(FD_CLOEXEC, O_NONBLOCK, fds);
ss.parent_pid = stem_ppid;
Stem stem{std::move(ss)};
supervised_node = stem.Run();
Stem new_stem{std::move(ss)};
supervised_node = new_stem.Run();
return {};
}
@ -1195,8 +1195,8 @@ std::optional<SupervisorStemHandle> Supervisor::CreateStem(bool supervisor_mode)
if ( pid == 0 )
{
Stem stem{std::move(ss)};
supervised_node = stem.Run();
Stem new_stem{std::move(ss)};
supervised_node = new_stem.Run();
return {};
}