From 4780ec5463ee49a30d55c1c63d9947eee69e9d66 Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Sun, 17 Nov 2013 12:54:55 +0100 Subject: Close info file descriptor after reading --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index d50cf66..6fbed6d 100644 --- a/main.c +++ b/main.c @@ -277,6 +277,7 @@ end: info.i -= info.lastsep; win.bar.l[info.i] = '\0'; win_update_bar(&win); + close(info.fd); info.fd = -1; while (waitpid(-1, NULL, WNOHANG) > 0); } -- cgit v1.2.3