1
0
mirror of https://github.com/xzeldon/htop.git synced 2025-04-11 13:07:08 +03:00

Close pipe after lsof

This commit is contained in:
Jesin 2019-06-23 13:13:05 -04:00
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;