From f7528f9b0344b2ade81a8708f93c12e91606e5fe Mon Sep 17 00:00:00 2001 From: andreastaliad Date: Mon, 25 May 2026 15:25:50 +0300 Subject: [PATCH] Revert "added auto-reaping to childeren" This reverts commit 3f16cb502cf95fce42f176d8d3e38ca8f9067a87. --- fork_bomb/fork_bomb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fork_bomb/fork_bomb.c b/fork_bomb/fork_bomb.c index 4ccb024..5daf7b2 100644 --- a/fork_bomb/fork_bomb.c +++ b/fork_bomb/fork_bomb.c @@ -276,12 +276,6 @@ int main(void) sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); - struct sigaction sa_chld; - memset(&sa_chld, 0, sizeof(sa_chld)); - sa_chld.sa_handler = SIG_IGN; - sa_chld.sa_flags = SA_NOCLDWAIT; - sigaction(SIGCHLD, &sa_chld, NULL); - pid_t fork_pgid = getpgrp(); int owns_pgrp = 0; if (!isatty(STDIN_FILENO) || tcgetpgrp(STDIN_FILENO) != fork_pgid) {