Process.GetProcessById bugfix (#64723)
authorEvgeny Peshkov <epeshk@users.noreply.github.com>
Thu, 24 Feb 2022 07:52:15 +0000 (10:52 +0300)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 07:52:15 +0000 (23:52 -0800)
commitf97919dc4a527ca15e3eb4115046e02438bc9252
tree794e0edd22b6b83da7250dadc7d47595b5aa367e
parentf35e865f8374b255e94875f4a8a90a4d1ca9b6b8
Process.GetProcessById bugfix (#64723)

* Bugfix: Process.GetProcessById claims killed process is still alive in .NET Core #63937

* Added test for GetProcessById with killed process

Co-authored-by: epeshk <>
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessManager.Windows.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs