From 39009bc928a187728d51dfd0682553a1b14c831d Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Fri, 3 Jul 2020 10:30:24 +0200 Subject: Close pipe after lsof --- debian/changelog | 1 + debian/patches/close-pipe-after-lsof.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 17 insertions(+) create mode 100644 debian/patches/close-pipe-after-lsof.patch diff --git a/debian/changelog b/debian/changelog index 228ed26..3fdce8c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ htop (2.2.0-3) UNRELEASED; urgency=medium [ Graham Inggs ] * Switch to debhelper 13 * Avoid FTBFS with GCC 10 (Closes: #957344) + * Close pipe after lsof [ Debian Janitor ] * Set upstream metadata fields: Bug-Database, Repository, Repository- diff --git a/debian/patches/close-pipe-after-lsof.patch b/debian/patches/close-pipe-after-lsof.patch new file mode 100644 index 0000000..e5cbf6f --- /dev/null +++ b/debian/patches/close-pipe-after-lsof.patch @@ -0,0 +1,15 @@ +Description: Close pipe after lsof +Forwarded: https://github.com/hishamhm/htop/pull/917 +Author: Jesin +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; diff --git a/debian/patches/series b/debian/patches/series index 6bbf748..7cbe4dc 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ fix-linux-process.patch python3.patch gcc10.patch +close-pipe-after-lsof.patch -- cgit v1.2.3