Skip to content
Commit f45d3c81 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by David Leach
Browse files

drivers: nsos: handle multiple blocking APIs on single socket



So far only a single blocking API could be handled simultaneously, due to
epoll_ctl(..., EPOLL_CTL_ADD, ...) returning -EEXIST when same file
descriptor was added twice.

Follow 'man epoll' advice about using dup() syscall to create a duplicate
file descriptor, which can be used with different events masks. Use such
duplicate for each blocking API except ioctl() (for handling Zephyr poll()
syscall).

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent 59a2d84f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment