Fixed minor race condition.
This commit is contained in:
parent
d3c38d699c
commit
94abf66444
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue