Part of twisted.internet.process View Source View In Hierarchy
| Unknown Field: ivars | listdir | The implementation of listdir to use. This gets overwritten by the test cases. |
| getpid | The implementation of getpid to use, returns the PID of the running process. | |
| openfile | The implementation of open() to use, by default the Python builtin. |
| Method | _listOpenFDs | Figure out which implementation to use, then run it. |
| Method | _getImplementation | Check if /dev/fd works, if so, use that. Otherwise, check if |
| Method | _checkDevFDSanity | Returns true iff opening a file modifies the fds visible |
| Method | _devFDImplementation | Simple implementation for systems where /dev/fd actually works. |
| Method | _procFDImplementation | Simple implementation for systems where /proc/pid/fd exists (we assume |
| Method | _resourceFDImplementation | Fallback implementation where the resource module can inform us about |
| Method | _fallbackFDImplementation | Fallback-fallback implementation where we just assume that we need to |
Otherwise, ask resource.getrlimit, if that throws an exception, then fallback to _fallbackFDImplementation.
Note that on OS-X we expect to be using the /dev/fd implementation.