Fixed minor race condition.

This commit is contained in:
Adam Harrison 2022-05-02 22:35:21 -04:00
parent d8f202e251
commit 91797d65d1
1 changed files with 1 additions and 1 deletions

View File

@ -23,9 +23,9 @@ struct dirmonitor_internal* init_dirmonitor() {
void deinit_dirmonitor(struct dirmonitor_internal* monitor) {
close(monitor->fd);
close(monitor->sig[0]);
close(monitor->sig[1]);
close(monitor->fd);
}