close epoll fd on exit

This commit is contained in:
Alessandro Mauri 2020-05-13 14:02:31 +02:00
parent 5acaa2b7df
commit c4e671b203

1
hkd.c
View File

@ -150,6 +150,7 @@ int main (void)
free(pb.buf);
if (!dead)
fprintf(stderr, red("an error occured\n"));
close(ev_fd);
close(event_watcher);
for (int i = 0; i < fd_num; i++)
if (close(fds[i]) == -1)