From 8d52fd18a853a4f86a2252df3ca3b1216e655d64 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 18 Mar 2009 20:06:22 +0000 Subject: [PATCH] [153275] [dstore-shells] Ctrl+C does not break remote program --- .../dstore/universal/miners/command/CommandMinerThread.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java index 077a109690d..f86b64b3d96 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java @@ -19,6 +19,7 @@ * David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability * David McKnight (IBM) [250203] [dstore][shells]%var% is substituted to null in Unix shell * David McKnight (IBM) [249715] [dstore][shells] Unix shell does not echo command + * David McKnight (IBM) [153275] [dstore-shells] Ctrl+C does not break remote program *******************************************************************************/ package org.eclipse.rse.internal.dstore.universal.miners.command; @@ -570,6 +571,9 @@ public class CommandMinerThread extends MinerThread // pty executable handles the break now if (input.equals("#break") && !_isTTY) //$NON-NLS-1$ { + // if no pty, then do it explicitly + _theProcess.destroy(); + return; } else if (input.equals("#enter")) //$NON-NLS-1$