From 38da516fb1156376d3e04ec20b664ece1ffdb24a Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 29 Oct 2024 12:08:17 +0100 Subject: [PATCH] use pkill on MacOS too when using ProcessSignal.sigkill --- packages/process_run/lib/src/shell.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/process_run/lib/src/shell.dart b/packages/process_run/lib/src/shell.dart index daab41b..d4eabd1 100644 --- a/packages/process_run/lib/src/shell.dart +++ b/packages/process_run/lib/src/shell.dart @@ -298,7 +298,7 @@ abstract class Shell implements ShellCore, ShellCoreSync { 'killing $_killedRunId, ${_currentProcessToString()} signal $_killedProcessSignal'); /// Workaround for linux when using sigkill to kill the children processes too - if (io.Platform.isLinux && + if ((io.Platform.isLinux || io.Platform.isMacOS) && _killedProcessSignal == ProcessSignal.sigkill) { try { /// Kill the children