File: iftop-cleanup.patch

package info (click to toggle)
iftop 1.0~pre4-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,120 kB
  • sloc: ansic: 5,782; sh: 4,262; makefile: 38
file content (23 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Markus Koschany <apo@debian.org>
Date: Tue, 3 Jan 2017 23:13:11 +0100
Subject: iftop cleanup

Bug-Debian: https://bugs.debian.org/850040
Forwarded: yes
---
 iftop.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/iftop.c b/iftop.c
index 883782e..3422120 100644
--- a/iftop.c
+++ b/iftop.c
@@ -839,6 +839,8 @@ int main(int argc, char **argv) {
     }
 
     pthread_cancel(thread);
+    pthread_join(thread, NULL);
+    pcap_close(pd);
 
     ui_finish();