base: construct child process only once

Fixes #3821
This commit is contained in:
Alexander Boettcher 2020-07-15 16:10:22 +02:00 committed by Norman Feske
parent c55a499009
commit ed15a46ca4

View File

@ -778,6 +778,9 @@ void Child::_try_construct_env_dependent_members()
if (session.phase == Session_state::AVAILABLE)
session.phase = Session_state::CAP_HANDED_OUT; });
if (_process.constructed())
return;
_policy.init(_cpu.session(), _cpu.cap());
Process::Type const type = _policy.forked()