{"version":"2.1.251","anchor":"background-sessions-shut-down-on-hangup-when-they-own-the-te","canonical_anchor":"background-sessions-shut-down-on-hangup-when-they-own-the-te","heading":"Background sessions shut down on hangup when they own the terminal","tier":"notice","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.251\/e\/background-sessions-shut-down-on-hangup-when-they-own-the-te","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.251","markdown":"### Background sessions shut down on hangup when they own the terminal\n\nBackground sessions now shut down cleanly when their terminal disappears.\n\n**What**\n\nSIGHUP used to be ignored outright by background sessions. Now, if the process owns the controlling terminal, it records the signal and shuts down properly instead of lingering after the terminal goes away.\n\n**Details**\n\n- Conditional on owning the controlling terminal; other background sessions still ignore SIGHUP.\n- The shutdown is logged with the signal name and a flag noting the terminal ownership.\n\n**Evidence**\n\n`shutdown_signal\", { signal: \"SIGHUP\", bg_ctty: !0 }`\n\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}