Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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? Content-Type: multipart/mixed; boundary="------------090406020502040104050000" --------------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 #include 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--