mirror of
https://github.com/troglobit/libuev.git
synced 2026-12-05 22:18:40 +00:00
README: Fix syntax error in example.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
694e2b5ab9
commit
1374661d4b
1 file changed
+6
-6
@@ -123,18 +123,18 @@ the event type's `_init()` function with the `uev_ctx_t` context.
|
|||||||
uev_exit(w->ctx);
|
uev_exit(w->ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
uev_t termw;
|
uev_t sigterm_watcher;
|
||||||
|
|
||||||
uev_signal_init(&ctx, &term, cleanup_exit, NULL, SIGTERM);
|
uev_signal_init(&ctx, &sigterm_watcher, cleanup_exit, NULL, SIGTERM);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
When all watchers are registered, call the *event loop* with `uev_run()`
|
When all watchers are registered, call the *event loop* with `uev_run()`
|
||||||
and the argument to the event context. The `flags` parameter can be
|
and the argument to the event context. The `flags` parameter can be
|
||||||
used to integrate [libuEv] into another event loop. With `flags` set to
|
used to integrate [libuEv][] into another event loop. With `flags` set
|
||||||
`UEV_ONCE` the event loop returns after having served the first event.
|
to `UEV_ONCE` the event loop returns after having served the first
|
||||||
If `flags` is set to `UEV_ONCE | UEV_NONBLOCK` the event loop returns
|
event. If `flags` is set to `UEV_ONCE | UEV_NONBLOCK` the event loop
|
||||||
immediately if no event is available.
|
returns immediately if no event is available.
|
||||||
|
|
||||||
```C
|
```C
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user