author | wenzelm |
Mon, 10 Oct 2016 22:20:00 +0200 | |
changeset 64136 | 7c5191489457 |
parent 64135 | 865dda40e1cc |
child 64137 | e9b3d9c1bc5a |
--- a/src/Pure/General/ssh.scala Mon Oct 10 21:52:55 2016 +0200 +++ b/src/Pure/General/ssh.scala Mon Oct 10 22:20:00 2016 +0200 @@ -154,7 +154,7 @@ def terminate() { - channel.disconnect + close out_lines.join err_lines.join exit_status.join @@ -164,6 +164,7 @@ try { exit_status.join } catch { case Exn.Interrupt() => terminate(); Exn.Interrupt.return_code } + close if (strict && rc == Exn.Interrupt.return_code) throw Exn.Interrupt() Process_Result(rc, out_lines.join, err_lines.join)