简体   繁体   English

为什么OSX Activity Monitor不显示我启动的进程?

[英]Why doesn't OSX Activity Monitor show the processes I started?

I'm using fork and execv to start child processes. 我正在使用fork和execv启动子进程。 If I run htop then I can find those processes. 如果运行htop,则可以找到那些进程。 However, OSX Activity Monitor doesn't show them, even if I have it set to show all processes. 但是,即使我将其设置为显示所有进程,OSX Activity Monitor也不会显示它们。 Why is that? 这是为什么?

The S column in htop show Z for all of my processes. htop中的S列显示我所有过程的Z。 What does that mean? 这意味着什么? Could that have something to do with it? 可能与这有关吗?

The Z in htop means the process is a "zombie". htop中的Z表示该过程是“僵尸”。 This means that the process has completed running and wants to die, but the parent process has not yet called wait() to obtain the child process exit code. 这意味着该进程已完成运行并希望终止,但是父进程尚未调用wait()来获取子进程退出代码。

It's possible that the OS X Activity Monitor does not show zombie processes. OS X活动监视器可能不显示僵尸进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM