]> 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)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 22 Apr 2015 16:55:33 +0000 (11:55 -0500)
commit2366b8a769b9403fda3c4780c84ad87d07b21d7e
tree0e1195c1253ef48cb41a1106e57dcadc62e4871e
parent858377e4d968c8a7254e22dc7167acf76ac91a48
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