delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/15/18:04:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: thing1-200.fsi.com: ford owned process doing -bs
Date: Thu, 15 Apr 2004 17:03:42 -0500 (CDT)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT thing1-200
Reply-To: cygwin AT cygwin DOT com
To: Edward Deitz <endeitz AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Limit on number of open files
In-Reply-To: <20040415204325.21595.qmail@web14303.mail.yahoo.com>
Message-ID: <Pine.GSO.4.58.0404151651340.19315@thing1-200>
References: <20040415204325 DOT 21595 DOT qmail AT web14303 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

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

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019