> For the total number of fds in use in the system, you could try > something like 'lsof'. > > If you just need the total number used in that particular process, > then fds are just integers numbered from 0 up, so printing whatever is > the last one you get from socket() or similar will tell you how many > that process is using up till now.
Actually, the latter won't work since fds are re-used within a process, i.e. 0 = open (...) 1 = open (...) 2 = open (...) close (0) 0 = open (...) So 'lsof' is your best bet. -mato -- Martin Lucina <[email protected]> _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
