Close info file descriptor after reading

This commit is contained in:
Bastien Dejean 2013-11-17 12:54:55 +01:00
parent cc479ca5ac
commit 4780ec5463
1 changed files with 1 additions and 0 deletions

1
main.c
View File

@ -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);
}