From 3a6e470309f7564f884470007ca7e7ef49b197e1 Mon Sep 17 00:00:00 2001 From: Yuri Goncharuk Date: Tue, 24 Feb 2026 09:23:52 +0200 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B4=D0=BE=D1=87=D0=B5=D1=80=D0=BD=D0=B8=D1=85=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=86=D0=B5=D1=81=D1=81=D0=BE=D0=B2=20=D0=B2=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=20=D0=97=D0=B0=D0=B2=D0=B5=D1=80=D1=88?= =?UTF-8?q?=D0=B8=D1=82=D1=8C()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Processes/ProcessContext.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/OneScript.StandardLibrary/Processes/ProcessContext.cs b/src/OneScript.StandardLibrary/Processes/ProcessContext.cs index e4d2b6267..a1ee50e77 100644 --- a/src/OneScript.StandardLibrary/Processes/ProcessContext.cs +++ b/src/OneScript.StandardLibrary/Processes/ProcessContext.cs @@ -196,10 +196,15 @@ public int ProcessId [ContextProperty("Имя", "Name")] public string Name => _p.ProcessName; - [ContextMethod("Завершить","Stop")] - public void Stop() + /// + /// Завершить процесс и, опционально, все его дочерние процессы. + /// + /// Булево. Завершить все дочерние процессы. + /// Не все дочерние процессы удалось завершить (только при entireProcessTree = true). + [ContextMethod("Завершить", "Stop")] + public void Stop(bool entireProcessTree = false) { - _p.Kill(); + _p.Kill(entireProcessTree); } public void Dispose()