Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not really: the function `:` calls itself and _pipes_ into itself.

The difference is - from what I can deduce - that if it were to only call itself, there would be up to 2 `:` processes running at a time, while the bash call stack would grow indefinitely. Using all your RAM but not an actual fork bomb.

Adding the pipe makes the number of `:` processes grow exponentially, and very quickly you reach the limit of 16384 active processes (PIDs, actually) on a Linux box.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: