Subject: Re: /bin/sh returns Out of file descriptors
To: GuRU <guru@nubisci.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 08/21/2002 10:01:57
On Wed, 21 Aug 2002, GuRU wrote:
> ganja:root# /etc/rc.d/named reload
> .: Out of file descriptors
>
> I'm curious as to what would cause this, as all scripts run fine on boot up.
How many file descriptors does your system have?
fstat | wc -l
pstat -T
sysctl kern.maxfiles
Jeremy C. Reed
http://bsd.reedmedia.net/
p.s. Why does fstat and pstat have different amounts?
$ echo $(($(fstat | wc -l)-1))
609
$ pstat -T | head -1
318/1772 files