Unverified50% confidenceFactExact time
setsid makes a process run in an independent session with no controlling terminal, thereby avoiding SIGHUP when the terminal hangs up.
1
Sources
50%
Confidence
Long-term
Relevance
10/18/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe tmux session process actively detaches from the controlling terminal (becoming a daemon), so it is not affected by the SIGHUP signal.74% similarUnverifiedWhen a terminal window is closed, the kernel sends SIGHUP to the session leader process (usually the shell), which then forwards that SIGHUP to the jobs in its job table, causing the AI coding agent process to terminate.73% similarUnverifiednohup works by setting SIGHUP to be ignored, so that a background process is not terminated by SIGHUP when the terminal closes.72% similarUnverifiedA normal claude or codex session runs in the terminal process that launched it, and closing the terminal (such as closing the tab, an SSH disconnect, or restarting the terminal application) will interrupt the running process.69% similarUnverifiedClaude Code provides the `claude --bg` flag to start a background session, which is run by a separate supervisor process; the session is retained after sleep, but shutting down or restarting stops running background sessions.68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1060295API
curl https://kongchang.com/api/v1/knowledge/claims/1060295MCP
get_claim(id=1060295)