mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 23:45:23 +02:00
Apply patch for 161838: support terminating local shells
This commit is contained in:
parent
f81c3e4d81
commit
202fd2e91d
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (c) 2002, 2006 IBM Corporation. All rights reserved.
|
* Copyright (c) 2002, 2006 IBM Corporation and others. All rights reserved.
|
||||||
* This program and the accompanying materials are made available under the terms
|
* This program and the accompanying materials are made available under the terms
|
||||||
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
* available at http://www.eclipse.org/legal/epl-v10.html
|
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
@ -12,6 +12,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Javier Montalvo Orús (Symbian) - 138619: Fix codepage on Win2K
|
* Javier Montalvo Orús (Symbian) - 138619: Fix codepage on Win2K
|
||||||
|
* Lothar Werzinger (Tradescape) - 161838: Support terminating local shells
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.services.local.shells;
|
package org.eclipse.rse.internal.services.local.shells;
|
||||||
|
@ -393,6 +394,8 @@ public class LocalShellThread extends Thread
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
System.out.println(e);
|
System.out.println(e);
|
||||||
|
// make the thread exit;
|
||||||
|
_isShell = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -438,7 +441,7 @@ public class LocalShellThread extends Thread
|
||||||
|
|
||||||
public boolean doThreadedWork()
|
public boolean doThreadedWork()
|
||||||
{
|
{
|
||||||
if (_stdInput == null)
|
if (_stdInput == null || _isShell == false)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue