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

fixes process.status() errors after process is terminated #2017 #2020

Closed
wants to merge 1 commit into from
Closed

fixes process.status() errors after process is terminated #2017 #2020

wants to merge 1 commit into from

Conversation

jerryc05
Copy link

Summary

Description

Fixes #2017

Add a try-catch block to catch error raise from _psutil_windows.c.

The stack trace is:

return self._proc.status()

suspended = cext.proc_is_suspended(self.pid)

if (! psutil_get_proc_info(pid, &process, &buffer))

NoSuchProcess("NtQuerySystemInformation (no PID found)");

Signed-off-by: Ziyan "Jerry" Chen <jerryc443@gmail.com>
@giampaolo
Copy link
Owner

Closing per my comment at #2017 (comment).

@giampaolo giampaolo closed this Nov 20, 2021
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.

[Windows 10] process.status() errors after process is terminated
2 participants