Skip to content

Conversation

@orionlee
Copy link

@orionlee orionlee commented Jul 4, 2025

Summary

Description

Fix the issue in Process.open_files() in Google Cloud Run + Docker Linux Python image environment, where the fdinfo file of an opened file does not have the pos: line expected by existing psutil codes.

History and Credit additions

For HISTORY.rst:

- 2596_, [Linux]: `Process.open_files()` raises some IndexError in some environments
  such as Docker + Google Cloud Run

For CREDITS:

N: Sam Lee
W: https://github.com/orionlee
I: 2596

@orionlee orionlee force-pushed the fix_open_files_fdinfo_only_flags_2596 branch from 6c1d2c0 to 099b8a2 Compare July 4, 2025 00:33
@orionlee orionlee changed the title [Linux] fix for cases fdinfo has only flags (#2596) [Linux] fix Process.open_files() for cases fdinfo has only flags (#2596) Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process.open_files() raises IndexError in some linux environments

1 participant