Skip to content

[Linux] fix Process.open_files() for cases fdinfo has only flags (#2596) #2598

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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