From: Mathieu Desnoyers Date: Thu, 16 May 2019 19:08:51 +0000 (-0400) Subject: lttng-ctl: notifications: use epoll()/poll() instead of select() X-Git-Tag: v2.11.0-rc3~21 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=06c7582761a17958e9b9df8fd17b22150c563f2b;hp=06c7582761a17958e9b9df8fd17b22150c563f2b;p=lttng-tools.git 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 Signed-off-by: Jérémie Galarneau ---