Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fd.py default app broken for systems with large numbers of open fds (race condition?) #11

Open
fmoo opened this issue Sep 10, 2013 · 0 comments
Labels

Comments

@fmoo
Copy link
Owner

fmoo commented Sep 10, 2013

[root@server ~]# ./fdinfo.par 16943 | wc -l
Traceback (most recent call last):
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "__main__.py", line 202, in <module>
  File "__main__.py", line 199, in __invoke_main
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/gcc-4.7.1-glibc-2.14.1/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "filedes/fd.py", line 280, in <module>
  File "filedes/fd.py", line 96, in __repr__
  File "filedes/fd.py", line 80, in typestr
  File "filedes/fd.py", line 75, in typecode
  File "filedes/fd.py", line 70, in mode
  File "filedes/fd.py", line 58, in stat
  File "filedes/fd.py", line 247, in _get_stat
  File "filedes/fd.py", line 17, in stat_pid_fd
OSError: [Errno 2] No such file or directory: '/proc/16943/fd/19440'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant