On Fri, 2005-03-11 at 02:12 +0100, Markus Lausser wrote:
> On Tue, 2005-03-08 at 21:56, Markus Lausser wrote:
> > Hello,
> > 
> > i get the message
> >   *** GLib *** : poll(2) failed due to: Invalid argument.
> > thousand times when running my application.
> > It seems that it happens if i have accepted 100 < x < 200
> > tcp connection from which i listen for input.
> > 
> > What can i do? I am using glib 2.6.0 on a linux system.
> 
> I've did some investigation, and it appears that glib runs into
> an endless loop when it tries to poll more than 256 fds at once.

It makes sense ... read /usr/include/linux/limits.h 

#define OPEN_MAX         256    /* # open files a process may have */

It's not glib, but your kernel.

If you need to open more files in a single process, change this number
and recompile the kernel.

Regards.
-- 
Iago Rubio
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to