mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
libev complete unix plat context init
https://github.com/warmcat/libwebsockets/issues/381 Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
0c034953e9
commit
ba955592eb
1 changed files with 6 additions and 6 deletions
|
@ -497,14 +497,14 @@ lws_plat_init(struct lws_context *context,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lws_libev_init_fd_table(context))
|
if (!lws_libev_init_fd_table(context)) {
|
||||||
/* libev handled it instead */
|
/* otherwise libev handled it instead */
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (pipe(context->dummy_pipe_fds)) {
|
if (pipe(context->dummy_pipe_fds)) {
|
||||||
lwsl_err("Unable to create pipe\n");
|
lwsl_err("Unable to create pipe\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* use the read end of pipe as first item */
|
/* use the read end of pipe as first item */
|
||||||
context->fds[0].fd = context->dummy_pipe_fds[0];
|
context->fds[0].fd = context->dummy_pipe_fds[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue