mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Handle event loop watcher failure modes
When alibuEv event watcher callback has `UEV_ERROR` in the events mask we must handle the error. Unfortunately, in most cases there is not much we can do but ignore it or log the error. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
168da2a5c6
commit
6826d7ee3f
4 files changed
+52
-1
No files matched your search
@@ -82,6 +82,7 @@ static void service_timeout_cb(uev_t *w, void *arg, int events)
|
||||
{
|
||||
svc_t *svc = arg;
|
||||
|
||||
/* Ignore any UEV_ERROR, we're a one-shot cb so just run it. */
|
||||
svc->timer_cb(svc);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user