Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uloop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uloop.c b/uloop.c
index 9ebeca6..ea160a0 100644
--- a/uloop.c
+++ b/uloop.c
@@ -680,11 +680,13 @@ void uloop_run(void)
{
uloop_gettime(&tv);
uloop_process_timeouts(&tv);
- if (uloop_cancelled)
- break;
if (do_sigchld)
uloop_handle_processes();
+
+ if (uloop_cancelled)
+ break;
+
uloop_gettime(&tv);
uloop_run_events(uloop_get_next_timeout(&tv));
}