summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBastien Dejean <nihilhill@gmail.com>2013-11-17 12:54:55 +0100
committerBastien Dejean <nihilhill@gmail.com>2013-11-17 12:54:55 +0100
commit4780ec5463ee49a30d55c1c63d9947eee69e9d66 (patch)
treea35f9871dd197ea351371e3499be10c702cf0e16 /main.c
parentcc479ca5ac5ec5050d7acf4c01a3a8e487072ae1 (diff)
downloadnsxiv-4780ec5463ee49a30d55c1c63d9947eee69e9d66.tar.zst
Close info file descriptor after reading
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
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);
}