]> git.ipfire.org Git - thirdparty/lxc.git/commit
use poll instead of select
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 21 Apr 2015 18:34:45 +0000 (13:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 17:04:29 +0000 (13:04 -0400)
commit7ba267cec60531611d8a31d6f6f6be960ac36bb9
tree53e2af9c5406c43ec6a64e17f675d64ab7c52d0a
parentd1679d60a1d4ad0a73953c1a7ba3d0016ed05788
use poll instead of select

Particularly when using the go-lxc api with lots of threads, it
happens that if the open files limit is > 1024, we will try to
select on fd > 1024 which breaks on glibc.

So use poll instead of select.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c
src/lxc/lxc.h
src/lxc/lxc_monitor.c
src/lxc/monitor.c
src/lxc/monitor.h