This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Limit on number of open files
- From: Edward Deitz <endeitz at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 15 Apr 2004 15:25:55 -0700 (PDT)
- Subject: Re: Limit on number of open files
Thanks very much for your help. Using the snapshot
version of the .dll fixed the problem.
You'll have to trust me that I did search the archives
before posting. . .I'm just not very good at it
apparently.
Ed.
--- Brian Ford <ford@vss.fsi.com> wrote:
> On Thu, 15 Apr 2004, Edward Deitz wrote:
>
> > So I tested with the following code:
> >
> > #include <stdio.h>
> > int
> > main(int argc, char **argv)
> > {
> > int i;
> > for (i = 0; i < 1000; i++)
> > {
> > FILE *f = fopen("/dev/null", "r");
> > if (!f)
> > break;
> > printf("%d\n", i);
> > }
> > exit(0);
> > }
> >
> > Results:
> >
> > 0
> > 1
> > ...
> > 132
> > Segmentation fault (core dumped)
> >
> > So the limit appears to be 133 files. And it
> appears
> > to have no relation to the ulimit command (which
> is
> > probably intentional, I'm not sure if ulimit is
> > supposed to work in Cygwin).
> >
> > Any ideas, anyone?
>
> Please search the archives before posting.
>
>
http://www.cygwin.com/ml/cygwin/2004-03/msg00990.html
>
> and later
>
>
http://www.cygwin.com/ml/cygwin/2004-03/msg01008.html
>
> also related
>
>
http://www.cygwin.com/ml/cygwin/2004-03/msg00988.html
>
> --
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax: 314-551-8444
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/