1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +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:
David McKnight 2007-05-08 19:11:57 +00:00
parent 3c6b9d06f3
commit c8694926f3

View file

@ -850,6 +850,20 @@ public class CommandMinerThread extends MinerThread
if (_isShell)
{
sendInput("exit"); //$NON-NLS-1$
// in case exit doesn't end it
try
{
Thread.sleep(1000);
}
catch (Exception e)
{
}
if (_stdOutputHandler.isAlive())
{
_theProcess.destroy();
}
}
}