Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU |
endhostent() should take care of that. It's kind of too bad that Purify has not been ported to Linux. Purify would be able to tell you that very quickly, but .... You could test this theory, by ----- code snippet---- fd = open("/etc/hosts", O_RDONLY); if (fd < 0) { /* you are probably out of fds ****/ ---- end ----- While the number of open file descriptors is a tunable parameter, increasing that only will delay the inevitable. On 18 Jun 2002 at 15:56, Patrick R. McManus wrote: > > you're running out of filedescriptors.. > > you do socket() to open a connection but you never do a close()... > > gethostbyname() can't get a fd (which it needs to open() /etc/hosts) > because they're all in use by your sockets. > > you aren't using all those sockets - close them. -- Jerry Feldman <gaf at blu.org> Associate Director Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |