6

This is the simplest fork bomb

:() { :|: & }; :

I executed it on many linux distros and all of them crashed.

But when I executed this in an android terminal there was no effect even after granting Super user permissions.

Any Explanations why it did not crash the android system?

1
  • It does work in Android 10 and Termux
    – tux
    Aug 26, 2021 at 20:31

1 Answer 1

10

In a word: ulimit. the linux kernel allows a limit on the number of child processes, this can be tweaked using the ulimit() system call or the ulimit shell builtin.

eg:

ulimit -u 5

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.