aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/close-pipe-after-lsof.patch
blob: e5cbf6f773d35a9893a531717ad3d62e6c605ba0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Close pipe after lsof
Forwarded: https://github.com/hishamhm/htop/pull/917
Author: Jesin <Jesin00@gmail.com>
Last-Update: 2019-06-23

--- a/OpenFilesScreen.c
+++ b/OpenFilesScreen.c
@@ -124,6 +124,7 @@
       item->data[cmd] = xStrdup(line + 1);
       free(line);
    }
+   fclose(fd);
    int wstatus;
    if (waitpid(child, &wstatus, 0) == -1) {
       pdata->error = 1;

© 2014-2024 Faster IT GmbH | imprint | privacy policy