mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +00:00
Honor new descriptor and events in uev_io_set()
uev_io_set() on an active oneshot watcher keeps watching the old
descriptor, for the old events:
uev_io_set(w, newfd, UEV_READ | UEV_ONESHOT);
It only rearms the watcher, with what is already stored in it.
Rearm only when neither has changed, otherwise stop the watcher and set
it up again.
Closes #35
This commit is contained in:
1 parent
c964bbe8fb
commit
fbe2c15377
4 files changed
+64
-1
No files matched your search
@@ -9,6 +9,7 @@ TESTS += active
|
||||
TESTS += api
|
||||
TESTS += complete
|
||||
TESTS += cronrun
|
||||
TESTS += io
|
||||
TESTS += signal
|
||||
TESTS += timer
|
||||
TESTS += event
|
||||
|
||||
Reference in new issue
Block a user