uloop: improve edge trigger reliability on mac os x
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Jan 2013 02:17:51 +0000 (03:17 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 Jan 2013 02:18:42 +0000 (03:18 +0100)
commit17f4e41ecb80f70c14493b4518e6eabec9faff7b
treeb202846552dd39b6b39de953929c75e3381de47a
parentc2916d7bcca129152fbbbbedcd9990706df8760a
uloop: improve edge trigger reliability on mac os x

Sometimes after re-arming a fd, an initial event for reads is not generated,
even though there is data pending. Work around this by making the trigger
level-triggered first, then switching to edge trigger after processing the first
event.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
uloop.c
uloop.h