From 5cddd0c928e9dd30835bedf8470b50e32e037de2 Mon Sep 17 00:00:00 2001 From: andreastaliad Date: Mon, 25 May 2026 13:14:34 +0300 Subject: [PATCH] Revert "added busy loop to see cpu spike" This reverts commit fa0ce03c4a7d22aaf05f68615e6ef235f7e4d79f. --- fork_bomb/fork_bomb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fork_bomb/fork_bomb.c b/fork_bomb/fork_bomb.c index a4b3c75..fed2c94 100644 --- a/fork_bomb/fork_bomb.c +++ b/fork_bomb/fork_bomb.c @@ -289,9 +289,8 @@ int main(void) } if (pid == 0) { - for (;;) { // busy loop to keep child processes alive - asm volatile("" ::: "memory"); - } + pause(); + return 0; } count++;