Skip to content

Instantly share code, notes, and snippets.

@chernyshev
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save chernyshev/d0710d1c6cb8b25157e1 to your computer and use it in GitHub Desktop.

Select an option

Save chernyshev/d0710d1c6cb8b25157e1 to your computer and use it in GitHub Desktop.
How can I find what file the program is trying to access that causes poll system call to timeout?

Invoke:

lsof -p <pid>

And see what the file descriptors in question refer to.

You can also take a look into proc filesystem on Linux:

ls -l /proc/<pid>/fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment