lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: How to increat [sic.] max open files - some answers
Date
Doesn't help, since different modules of the program may have been
compiled at different times (think libraries.)

-hpa

>
>
> Processes that want this non-standard behavior can request it
> easily. The following code fragment should work:
>
> #include <sys/time.h>
> #include <sys/resource.h>
> #include <unistd.h>
>
> struct rlimit r;
>
> r.rlim_cur = r.rlim_max = sizeof(fd_set)*8;
> setrlimit(RLIMIT_NOFILE, &r);
>
> David Schwartz
>
> -------------------------------------------------------------------------
> In the news today: A fire tore through Bob Dole's library. Both books
> were destroyed, and he hadn't even finished coloring one yet.
> -------------------------------------------------------------------------
>
> On Mon, 6 Jan 1997, Martin Mares wrote:
>
> > Hello, world!
> >
> > Isn't it possible for the application to tell the kernel what max. #
> > of fd's it can handle? Yes, it's a bit ugly, but it would work.
> >
> > Martin
>


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.041 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site