Fixed minor race condition.

This commit is contained in:
Adam Harrison 2022-05-02 22:35:21 -04:00
parent d3c38d699c
commit 94abf66444
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) { void deinit_dirmonitor(struct dirmonitor_internal* monitor) {
close(monitor->fd);
close(monitor->sig[0]); close(monitor->sig[0]);
close(monitor->sig[1]); close(monitor->sig[1]);
close(monitor->fd);
} }