close epoll fd on exit

xkbcommon
Alessandro Mauri 5 years ago
parent 5acaa2b7df
commit c4e671b203
  1. 1
      hkd.c

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

Loading…
Cancel
Save