Skip to content

Commit

Permalink
use pkill on MacOS too when using ProcessSignal.sigkill
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Oct 29, 2024
1 parent f2bd2e9 commit 38da516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/process_run/lib/src/shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38da516

Please sign in to comment.