Loading pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/process.py +37 −24 Original line number Diff line number Diff line Loading @@ -179,6 +179,9 @@ def _kill_long_running_ssh_process(args: Args, remote: Remote) -> None: # its arguments as regex) quoted_args = re.escape(shlex.join(str(a) for a in args)) logger.debug("killing remote process using pkill with args=%r", quoted_args) cleanup_interrupted = False try: r = subprocess.run( [ "ssh", Loading @@ -203,3 +206,13 @@ def _kill_long_running_ssh_process(args: Args, remote: Remote) -> None: r.stderr, r.returncode, ) except KeyboardInterrupt: cleanup_interrupted = True raise finally: if cleanup_interrupted or r.returncode: logger.warning( "could not clean-up remote process, the command %s may still be running in host '%s'", args, remote.host, ) Loading
pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/process.py +37 −24 Original line number Diff line number Diff line Loading @@ -179,6 +179,9 @@ def _kill_long_running_ssh_process(args: Args, remote: Remote) -> None: # its arguments as regex) quoted_args = re.escape(shlex.join(str(a) for a in args)) logger.debug("killing remote process using pkill with args=%r", quoted_args) cleanup_interrupted = False try: r = subprocess.run( [ "ssh", Loading @@ -203,3 +206,13 @@ def _kill_long_running_ssh_process(args: Args, remote: Remote) -> None: r.stderr, r.returncode, ) except KeyboardInterrupt: cleanup_interrupted = True raise finally: if cleanup_interrupted or r.returncode: logger.warning( "could not clean-up remote process, the command %s may still be running in host '%s'", args, remote.host, )