From e610875ec0e300f77b98f4ea37c9e3980ca2ec89 Mon Sep 17 00:00:00 2001 From: Wenbo <> Date: Sun, 18 Feb 2024 22:02:26 +1300 Subject: [PATCH 1/4] Update the doc about System.Diagnostics.Process regarding dotnet runtime issue 97132 --- xml/System.Diagnostics/Process.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 90ef4d870d1..56473d68139 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -112,6 +112,11 @@ A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the property of the component, even when the process has exited. Thus, you can get the process's administrative information, such as the (usually either zero for success or a nonzero error code) and the . Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory. + In the MacOS, the following properties will return 0: + - + - + - + > [!NOTE] > This class contains a link demand and an inheritance demand at the class level that applies to all members. A is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands). From 2f5d3ca90057dd0e935735668eee0f8b5df129fc Mon Sep 17 00:00:00 2001 From: Wenbo <> Date: Wed, 21 Feb 2024 22:10:45 +1300 Subject: [PATCH 2/4] Try to fix some warnings from github with the previous change --- xml/System.Diagnostics/Process.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 56473d68139..71f4af9e02a 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -113,9 +113,9 @@ A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the property of the component, even when the process has exited. Thus, you can get the process's administrative information, such as the (usually either zero for success or a nonzero error code) and the . Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory. In the MacOS, the following properties will return 0: - - - - - - + - + - + - > [!NOTE] > This class contains a link demand and an inheritance demand at the class level that applies to all members. A is thrown when either the immediate caller or the derived class does not have full-trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands). From f44bec34c573cf44e9519c9ef7ea08367ac20c30 Mon Sep 17 00:00:00 2001 From: Wenbo <39964574@qq.com> Date: Thu, 22 Feb 2024 12:00:21 +1300 Subject: [PATCH 3/4] Update Process.xml to fix a warning --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 71f4af9e02a..5daf5671fc0 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -113,7 +113,7 @@ A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the property of the component, even when the process has exited. Thus, you can get the process's administrative information, such as the (usually either zero for success or a nonzero error code) and the . Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory. In the MacOS, the following properties will return 0: - - + - - - From a215863e3e6685dcf381358e02628841612cd4ce Mon Sep 17 00:00:00 2001 From: Wenbo <> Date: Thu, 22 Feb 2024 23:02:04 +1300 Subject: [PATCH 4/4] Try to fix some warnings from github with the previous change --- xml/System.Diagnostics/Process.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Diagnostics/Process.xml b/xml/System.Diagnostics/Process.xml index 5daf5671fc0..d0d1def4956 100644 --- a/xml/System.Diagnostics/Process.xml +++ b/xml/System.Diagnostics/Process.xml @@ -113,7 +113,7 @@ A system process is uniquely identified on the system by its process identifier. Like many Windows resources, a process is also identified by its handle, which might not be unique on the computer. A handle is the generic term for an identifier of a resource. The operating system persists the process handle, which is accessed through the property of the component, even when the process has exited. Thus, you can get the process's administrative information, such as the (usually either zero for success or a nonzero error code) and the . Handles are an extremely valuable resource, so leaking handles is more virulent than leaking memory. In the MacOS, the following properties will return 0: - - + - - -