Skip to content

Commit 61b1a6d

Browse files
committed
Address Feedback
1 parent 9b8e826 commit 61b1a6d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

xml/System.Diagnostics/Process.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,10 @@ Therefore, the request to exit the process by closing the main window does not f
20762076
> [!NOTE]
20772077
> The <xref:System.Diagnostics.Process.Kill%2A> method executes asynchronously.
20782078
> After calling the `Kill` method, call the <xref:System.Diagnostics.Process.WaitForExit%2A> method to wait for the process to exit, or check the <xref:System.Diagnostics.Process.HasExited%2A> property to determine if the process has exited.
2079+
2080+
> [!NOTE]
2081+
> The <xref:System.Diagnostics.Process.WaitForExit%2A> method and the <xref:System.Diagnostics.Process.HasExited%2A> property do not reflect the status of descendant processes.
2082+
> When `Kill(entireProcessTree: true)` is used, <xref:System.Diagnostics.Process.WaitForExit%2A> and <xref:System.Diagnostics.Process.HasExited%2A> will indicate that exiting has completed after the given process exits, even if all descendants have not yet exited.
20792083

20802084
Data edited by the process or resources allocated to the process can be lost if you call `Kill`.
20812085
`Kill` causes an abnormal process termination and should be used only when necessary.
@@ -2169,8 +2173,8 @@ You cannot cause processes on remote computers to exit. You can only view inform
21692173
</Parameters>
21702174
<Docs>
21712175
<param name="entireProcessTree"><see langword="true" /> to kill the associated process and its descendants; <see langword="false" /> to kill only the associated process.</param>
2172-
<summary>Immediately stops the associated process, and optionally all of its child/descendent processes.</summary>
2173-
<remarks>To be added.</remarks>
2176+
<summary>Immediately stops the associated process, and optionally its child/descendent processes.</summary>
2177+
<remarks>When <xref:System.Diagnostics.Process.entireProcessTree%2A> is set to true, processes where the call lacks permissions to view details will be silently skipped by the descendant termination process because the termination process is unable to determine whether those processes are descendants.</remarks>
21742178
<exception cref="T:System.ComponentModel.Win32Exception">The associated process could not be terminated.
21752179

21762180
-or-

0 commit comments

Comments
 (0)