Why fork bomb did not crash android?
Asked Answered
A

1

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?

Ave answered 14/12, 2014 at 6:26 Comment(1)
It does work in Android 10 and TermuxJenette
C
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
Cartelize answered 14/12, 2014 at 6:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.