Return-Path: william@bourbon.usc.edu Delivery-Date: Thu Oct 30 08:41:47 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9UFflIL004080 for ; Thu, 30 Oct 2008 08:41:47 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m9UFrNS5008549 for ; Thu, 30 Oct 2008 08:53:23 -0700 Message-Id: <200810301553.m9UFrNS5008549@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: gethostbyname giving error Date: Thu, 30 Oct 2008 08:53:23 -0700 From: Bill Cheng Someone wrote: > gethostbyname is returning null, saying Too many open files. Please help. If you write a small program with just a call to gethostbyname() in it, I assume that works. Therefore, the problem is not gethostbyname(). May be you have too many files/sockets opened. Do you know how many files/sockets you have opened? In general, you need to know how much resources you are using. -- Bill Cheng // bill.cheng@usc.edu