Wednesday, September 30, 2026
Tuesday, September 29, 2026
New top story on Hacker News: Show HN: Corral – Kill every command your agent starts
Show HN: Corral – Kill every command your agent starts
10 by CG144 | 1 comments on Hacker News.
This summer I got to intern on the backend of an AI agent and I noticed that it would run commands like tail -f or some random background jobs and exit without terminating any of these. I got curious and looked up how Claude Code handles stuff like this, and it turns out they have similar problems. There are issues about background processes from the Bash tool not getting cleaned up when the session ends, and one where a timeout sends SIGTERM to the whole process group and ends up killing Claude Code itself. Most runners only kill the process they started, so anything that double forks, runs in the background, or keeps stdout open either survives or makes the runner hang. Corral was me attempting to make a fix for this problem, while also trying to learn about processes and signals in Linux. You run corral --wall 30s -- yourcommand and by the time it's done, nothing it started should be running. The command gets its own session so killing it can't kill you, and there's a mode where it runs in its own cgroup so the whole tree gets killed at once, including processes that may have changed sessions or process groups. If there's no cgroup available it tracks the tree through /proc instead (this is a bit weaker, it still catches processes that changed sessions once their parent dies, but it can't kill anything running as a different user or anything handed off to another service like systemd), and if it can't confirm everything is dead it exits with 120. Would love any feedback and more stuff along these lines i can do to learn more
10 by CG144 | 1 comments on Hacker News.
This summer I got to intern on the backend of an AI agent and I noticed that it would run commands like tail -f or some random background jobs and exit without terminating any of these. I got curious and looked up how Claude Code handles stuff like this, and it turns out they have similar problems. There are issues about background processes from the Bash tool not getting cleaned up when the session ends, and one where a timeout sends SIGTERM to the whole process group and ends up killing Claude Code itself. Most runners only kill the process they started, so anything that double forks, runs in the background, or keeps stdout open either survives or makes the runner hang. Corral was me attempting to make a fix for this problem, while also trying to learn about processes and signals in Linux. You run corral --wall 30s -- yourcommand and by the time it's done, nothing it started should be running. The command gets its own session so killing it can't kill you, and there's a mode where it runs in its own cgroup so the whole tree gets killed at once, including processes that may have changed sessions or process groups. If there's no cgroup available it tracks the tree through /proc instead (this is a bit weaker, it still catches processes that changed sessions once their parent dies, but it can't kill anything running as a different user or anything handed off to another service like systemd), and if it can't confirm everything is dead it exits with 120. Would love any feedback and more stuff along these lines i can do to learn more
Monday, September 28, 2026
सुप्रीम कोर्ट: सीजेआई की बेंच का निर्देश- नकली दवा पर रोक से जुड़ी याचिका अधिकारियों के पास भेजें याचिकाकर्ता
September 28, 2026Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala
No comments
सुप्रीम कोर्ट: सीजेआई की बेंच का निर्देश- नकली दवा पर रोक से जुड़ी याचिका अधिकारियों के पास भेजें याचिकाकर्ता
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/gDmteB3
via IFTTT
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/gDmteB3
via IFTTT
Sunday, September 27, 2026
न्यूज डायरी: बीरभूम में भाजपा कार्यकर्ता की हत्या; नाइटक्लब में महिला से छेड़छाड़, 24 वर्षीय युवक गिरफ्तार
September 27, 2026Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala
No comments
न्यूज डायरी: बीरभूम में भाजपा कार्यकर्ता की हत्या; नाइटक्लब में महिला से छेड़छाड़, 24 वर्षीय युवक गिरफ्तार
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/bXclO10
via IFTTT
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/bXclO10
via IFTTT
Saturday, September 26, 2026
Friday, September 25, 2026
Thursday, September 24, 2026
रिपोर्ट में खुलासा: भाजपा ने बंगाल चुनाव में 287 करोड़, कांग्रेस ने केरल में 105 करोड़ रुपये खर्च किए
September 24, 2026Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala
No comments
रिपोर्ट में खुलासा: भाजपा ने बंगाल चुनाव में 287 करोड़, कांग्रेस ने केरल में 105 करोड़ रुपये खर्च किए
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/oYz2vFR
via IFTTT
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/oYz2vFR
via IFTTT
Wednesday, September 23, 2026
एक्सप्लेनर: उत्तर प्रदेश के चार हिस्से हुए तो कहां होंगे आप, राजभर से पहले कौन-कौन कर चुका बंटवारे की मांग?
September 23, 2026Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala
No comments
एक्सप्लेनर: उत्तर प्रदेश के चार हिस्से हुए तो कहां होंगे आप, राजभर से पहले कौन-कौन कर चुका बंटवारे की मांग? Explainer: If UP Is Split into Four States, Where Would You Be? Who Had Demanded the Division Before Rajbhar?
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/or5zNti
via IFTTT
from Latest And Breaking Hindi News Headlines, News In Hindi | अमर उजाला हिंदी न्यूज़ | - Amar Ujala https://ift.tt/or5zNti
via IFTTT





