uloop: fix edge trigger handling on mac os x
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
ae40b66130
commit
cd5238b500
2 changed files with 2 additions and 1 deletions
1
uloop.c
1
uloop.c
|
@ -181,6 +181,7 @@ static int uloop_fetch_events(int timeout)
|
||||||
|
|
||||||
if (u->flags & ULOOP_EDGE_DEFER) {
|
if (u->flags & ULOOP_EDGE_DEFER) {
|
||||||
u->flags &= ~ULOOP_EDGE_DEFER;
|
u->flags &= ~ULOOP_EDGE_DEFER;
|
||||||
|
u->flags |= ULOOP_EDGE_TRIGGER;
|
||||||
register_kevent(u, u->flags);
|
register_kevent(u, u->flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
uloop.h
2
uloop.h
|
@ -56,7 +56,7 @@ struct uloop_fd
|
||||||
bool error;
|
bool error;
|
||||||
bool registered;
|
bool registered;
|
||||||
#ifdef USE_KQUEUE
|
#ifdef USE_KQUEUE
|
||||||
bool flags;
|
uint8_t flags;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue