lttng-ctl: notifications: use epoll()/poll() instead of select()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 May 2019 19:08:51 +0000 (15:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 17:56:37 +0000 (13:56 -0400)
commitd977a743144ea108584e328c32eb217d8162c137
tree4ae78c242aacba81782e11f3f808cd78cf48b46f
parent9f32e9bf43a6438c55f35d3c5ed1c378d0c715c4
lttng-ctl: notifications: use epoll()/poll() instead of select()

The select(2) system call is an ancient ABI limited to processes
containing at most FD_SETSIZE file descriptors overall (typically
1024).

Those notification APIs will fail if the target file descriptor
is above FD_SETSIZE in a process containing many file descriptors.

Never use select, use the lttng epoll/poll wrapper instead.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/channel.c
This page took 0.026457 seconds and 5 git commands to generate.