Close info file descriptor after reading
This commit is contained in:
parent
cc479ca5ac
commit
4780ec5463
1 changed files with 1 additions and 0 deletions
1
main.c
1
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue