-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
area-System.Diagnostics.ProcessuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
I'm seeing a situation in microsoft/testfx repo where Process.KillTree appears to take so long.
In the above case, the process itself has already exited before Kill(true) was called. Based on the code comment here:
runtime/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Win32.cs
Lines 378 to 380 in e8812e7
| // If the process has exited, the handle is invalid. | |
| if (handle.IsInvalid) | |
| return null; |
I'm really surprised this condition isn't hit and we return immediately.
I guess it's not a supported scenario to kill whole tree if the parent process already exited?
Note: I haven't tried to create a minimal repro yet.
Metadata
Metadata
Assignees
Labels
area-System.Diagnostics.ProcessuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner