mirror of https://github.com/xzeldon/htop.git
Close pipe after lsof
This commit is contained in:
parent
402e46bb82
commit
886eb68102
|
@ -124,6 +124,7 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(pid_t pid) {
|
|||
item->data[cmd] = xStrdup(line + 1);
|
||||
free(line);
|
||||
}
|
||||
fclose(fd);
|
||||
int wstatus;
|
||||
if (waitpid(child, &wstatus, 0) == -1) {
|
||||
pdata->error = 1;
|
||||
|
|
Loading…
Reference in New Issue