delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/21/11:13:07

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-pair-Authenticated: 24.126.73.164
Message-ID: <405DBF36.6080902@kegel.com>
Date: Sun, 21 Mar 2004 08:13:42 -0800
From: Dan Kegel <dank AT kegel DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: How many fds can *you* open?

--------------090406020502040104050000
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I'm having trouble on both my recently-updated cygwin
machines.  They crash after opening 130 to 180 fds.
Here's a little program that just counts how many
fds it can open for /dev/null.  I suspect a few of
you will also have my problem.  Could you run this
and report back how many fds it reports, or whether it crashes?
Thanks,
Dan



--------------090406020502040104050000
Content-Type: text/plain;
 name="fds.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="fds.c"

#include <stdio.h>
#include <fcntl.h>

int main(int argc, char **argv)
{
	int i;
	for (i=0; open("/dev/null", O_RDONLY) != -1; i++)
		;
	printf("opened %d fds\n", i);
	return 0;
}


--------------090406020502040104050000
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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