mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 07:05:58 +02:00
dstore shell termination in case exit fails (this is required when a long running process under the shell isn't finished when the user tries to exit the shell)
This commit is contained in:
parent
3c6b9d06f3
commit
c8694926f3
1 changed files with 14 additions and 0 deletions
|
@ -850,6 +850,20 @@ public class CommandMinerThread extends MinerThread
|
||||||
if (_isShell)
|
if (_isShell)
|
||||||
{
|
{
|
||||||
sendInput("exit"); //$NON-NLS-1$
|
sendInput("exit"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
// in case exit doesn't end it
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
if (_stdOutputHandler.isAlive())
|
||||||
|
{
|
||||||
|
_theProcess.destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue