android - 为什么 fork 炸弹没有让 android 崩溃?

标签 android linux shell su

这是最简单的 fork 炸弹

:() { :|: & }; :

我在许多 Linux 发行版上执行它,但所有发行版都崩溃了。

但是当我在 android 终端中执行此操作时,即使在授予 super 用户 权限后也没有任何效果。

有什么解释为什么它没有使 android 系统崩溃?

最佳答案

一句话:ulimit。 linux 内核允许限制子进程的数量,这可以使用 ulimit() 系统调用或内置的 ulimit shell 进行调整。

例如:

ulimit -u 5

关于android - 为什么 fork 炸弹没有让 android 崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27466905/

相关文章:

php - Composer 安装 : the json extension is missing

linux - "No manual entry for [filename]"错误,尝试查看我的手册页时

shell - 计算 shell 变量中的项目数

android - Eclipse android phonegap config.xml 不工作?

Android Fragment - 使用 Activity 的 loadermanager 而不是 Fragment 的。可以吗?

linux - 如何在 Linux 终端中将 .jsp 文件放到 tomcat 上?

linux - 在 bash shell 中打印文件中每行的 3 个字符

android - 如何在android中用文本显示圆弧

android - '错误 : Failed to resolve: com. android.support :appcompat-v7:29. 0.1'

c++ - 如何在 Linux 和 C++ 上设计 GUI