Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and BenBE committed Jan 11, 2021
1 parent d924099 commit 1b2d48b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions linux/LinuxProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,11 +1435,8 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
if (settings->showThreadNames || Process_isKernelThread(proc)) {
proc->basenameOffset = -1;
free_and_xStrdup(&proc->comm, command);
} else if (settings->showThreadNames) {
if (! LinuxProcessList_readCmdlineFile(proc, procFd)) {
goto errorReadingProcess;
}
}

if (Process_isKernelThread(proc)) {
pl->kernelThreads++;
} else {
Expand Down

0 comments on commit 1b2d48b

Please sign in to comment.