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



_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to