Re: Limit on number of open files

2004-04-15 Thread Edward Deitz
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 <[EMAIL PROTECTED]> wrote: > On Thu, 15 Apr 2004, Edward Deitz wrote: >

Re: Limit on number of open files

2004-04-15 Thread Brian Ford
On Thu, 15 Apr 2004, Edward Deitz wrote: > So I tested with the following code: > > #include > 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); > } > e

Limit on number of open files

2004-04-15 Thread Edward Deitz
Is there a way to increase the number of files that can be open simultaneously? Here's what I've tried: $ ulimit -n 1024 $ ulimit -n 1024 So I tested with the following code: #include int main(int argc, char **argv) { int i; for (i = 0; i < 1000; i++) { FILE *f = fopen("/dev/null