Re: poll(2) only can handle 256 fds?
- From: John Cupitt <jcupitt gmail com>
- To: Markus Lausser <sgop users sourceforge net>
- Cc: gtk mailing list <gtk-app-devel-list gnome org>
- Subject: Re: poll(2) only can handle 256 fds?
- Date: Mon, 14 Mar 2005 10:04:52 +0000
On 14 Mar 2005 03:15:06 +0100, Markus Lausser
<sgop users sourceforge net> wrote:
But this little test program also fails here with more than 256 entries:
-----------------------
That's interesting. I tried your program here and it works fine for
1024 fds, but fails for 1025.
If I become root, I can do:
constable:/home/john/try # ulimit -n 2048
constable:/home/john/try # ./a.out 2048
poll() returned 0
So I guess the problem must be in your glibc or your kernel. I'm
suse9.0, if that's any help (kernel 2.4.21, I think glibc 2.3.3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]