We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deb05fe commit 79a6f6cCopy full SHA for 79a6f6c
ProcessList.c
@@ -274,13 +274,17 @@ static void ProcessList_buildTree(ProcessList* this) {
274
275
// If PID corresponds with PPID (e.g. "kernel_task" (PID:0, PPID:0)
276
// on Mac OS X 10.11.6) regard this process as root.
277
- if (process->pid == ppid)
+ if (process->pid == ppid) {
278
process->isRoot = true;
279
+ continue;
280
+ }
281
282
// On Linux both the init process (pid 1) and the root UMH kernel thread (pid 2)
283
// use a ppid of 0. As that PID can't exist, we can skip searching for it.
- if (!ppid)
284
+ if (!ppid) {
285
286
287
288
289
// We don't know about its parent for whatever reason
290
if (ProcessList_findProcess(this, ppid) == NULL)
0 commit comments