Skip to content

Commit 744914c

Browse files
authored
Merge pull request #1752 from BenBE/startup-boost-fix
Fix logic bug while iterating processes
2 parents cfb561f + 82f0722 commit 744914c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/LinuxProcessTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ static bool LinuxProcessTable_recurseProcTree(LinuxProcessTable* this, openat_ar
16001600
proc->isUserlandThread = Process_getPid(proc) != Process_getThreadGroup(proc);
16011601
assert(proc->isUserlandThread == (mainTask != NULL));
16021602

1603-
if (mainTask) {
1603+
if (!mainTask) {
16041604
// As the list of tasks/threads is presented as a flat view in procfs
16051605
// below each directories main entry, it makes no sense to
16061606
// look for further directories that will not be there.

0 commit comments

Comments
 (0)