projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc3dec
)
uloop: allow passing 0 as timeout to uloop_run
author
Felix Fietkau
<nbd@nbd.name>
Sat, 17 Jun 2017 09:47:21 +0000
(11:47 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Sat, 17 Jun 2017 09:47:49 +0000
(11:47 +0200)
Useful for processing only immediate timers and fds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
uloop.c
patch
|
blob
|
history
diff --git
a/uloop.c
b/uloop.c
index 0c57753444e16f361afd8f2d51a180436323aec9..d2f41bbfd1c8cc995f5416f287597774341a6190 100644
(file)
--- a/
uloop.c
+++ b/
uloop.c
@@
-548,7
+548,7
@@
int uloop_run_timeout(int timeout)
uloop_gettime(&tv);
next_time = uloop_get_next_timeout(&tv);
- if (timeout > 0 && timeout < next_time)
+ if (timeout >
=
0 && timeout < next_time)
next_time = timeout;
uloop_run_events(next_time);
}