{"version":"2.1.247","anchor":"dead-background-terminal-hosts-are-cleaned-up-rather-than-hu","canonical_anchor":"dead-background-terminal-hosts-are-cleaned-up-rather-than-hu","heading":"Dead background terminal hosts are cleaned up rather than hung on","tier":"notice","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/dead-background-terminal-hosts-are-cleaned-up-rather-than-hu","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Dead background terminal hosts are cleaned up rather than hung on\n\nBackground sessions whose terminal process died are now killed and marked failed instead of hanging.\n\n**What**\n\nA background session whose terminal host process has exited but was never reaped is now detected, force-killed and marked failed, instead of leaving the session apparently alive.\n\n**Details**\n\n- Reports a new telemetry event, `tengu_bg_ptyhost_zombie`, carrying the session short id, how it was reached, its state, its uptime in milliseconds and how many clients were attached.\n\n**Evidence**\n\n`tengu_bg_ptyhost_zombie`\n\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}