linux父进程退出时子进程怎么办?

内核会为子进程找到一个“养父”进程作为父进程,否则子进程就会进入僵死状态。

内核会按一定策略来选择养父,如果找不到合适的,就会使用init进程作为养父。

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.