diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index 6e6f9568..abfd0d6b 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -1976,7 +1976,7 @@ def run_ddrescue(state, block_pair, pass_name, settings, dry_run=True) -> None: warning_message = check_destination_health(state.destination) if warning_message: # Error detected on destination, stop recovery - exe.stop_process(proc) + proc.terminate() cli.print_error(warning_message) break _i += 1 @@ -1994,7 +1994,7 @@ def run_ddrescue(state, block_pair, pass_name, settings, dry_run=True) -> None: LOG.warning('ddrescue stopped by user') warning_message = 'Aborted' std.sleep(2) - exe.stop_process(proc, graceful=False) + proc.terminate() break except subprocess.TimeoutExpired: # Continue to next loop to update panes