[Libreoffice-bugs] [Bug 124478] Print number of file descriptors we have ...

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Feb 18 21:08:04 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=124478

--- Comment #2 from codetronaut <anmol.karan123 at gmail.com> ---
Hello, I would like to take this issue. 

for this issue, I thought in a way that:
in Linux we use $cat /proc/sys/fs/file-nr 
for the no. of file descriptors we have,

the method I found is:
 is to do something like looping over all possible descriptors (use getrlimit()
to read RLIMIT_NOFILE to find the range) calling something like fcntl(fd,
F_GETFD, 0) on each one and checking for EBADF responses to see which ones are
not open.


If these are not appropriate please guide me on this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200218/954117a2/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list