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?

jlliagre
  • 29,783
  • 6
  • 61
  • 72
Shubham Batra
  • 1,278
  • 1
  • 14
  • 27

1 Answers1

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
Jasen
  • 11,837
  • 2
  • 30
  • 48