Close pipe after lsof

This commit is contained in:
Jesin 2019-06-23 13:13:05 -04:00
parent 402e46bb82
commit 886eb68102
1 changed files with 1 additions and 0 deletions

View File

@ -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;