Telnetd should close stray descriptors in its children
Doug Graham
dgraham at nortel.com
Wed Jun 17 23:40:42 UTC 2009
Rob Landley wrote:
> On Thursday 11 June 2009 10:01:35 Denys Vlasenko wrote:
>
>> Pity there is no way to ask "what is the highest open fd#?" in Unix.
>>
>
> ls /proc/self/fd | tail 1
>
> Now if you want a non-disgusting way to ask that question, that's another
> matter. :)
>
>
I assume you meant a non-disgusting way to *answer* that question? This
might be slightly less disgusting:
grep FDSize /proc/self/status
Not an exact answer to the question, but should give a wildly inaccurate
approximation to a high water mark.
--Doug
More information about the busybox
mailing list