init: don't report abandoned children

This is a fixup of "base: fix destruction of async env sessions".
This commit is contained in:
Norman Feske 2018-06-12 15:49:17 +02:00 committed by Christian Helmuth
parent ef482513c4
commit 648539a513
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@ void Init::Child::apply_downgrade()
void Init::Child::report_state(Xml_generator &xml, Report_detail const &detail) const
{
if (abandoned())
return;
/* true if it's safe to call the PD for requesting resource information */
bool const pd_alive = !abandoned() && !_exited;