1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-21 15:23:59 +02:00

[249715] [dstore][shells] Unix shell does not echo command

--updatd to check for output while checking for input
This commit is contained in:
David McKnight 2008-11-25 19:04:20 +00:00
parent dc3c44e927
commit 3af3baa457

View file

@ -173,13 +173,13 @@ public class OutputHandler extends Handler {
if (!_isStdError && !_isTerminal){ if (!_isStdError && !_isTerminal){
long lastInput = _timeOfLastInput; long lastInput = _timeOfLastInput;
while (lastInput == _timeOfLastInput && _keepRunning){ // once there's something new, we can stop waiting while (lastInput == _timeOfLastInput && _keepRunning && available == 0){ // once there's something new, we can stop waiting
Thread.sleep(500); // wait in case there is something Thread.sleep(500); // wait in case there is something
available = checkAvailable();
} }
// it's possible that there is no output for something
// in the non-TTY case we need to prompt
available = checkAvailable();
if (available == 0){ if (available == 0){
// it's possible that there is no output for something
// in the non-TTY case we need to prompt
return new String[0]; return new String[0];
} }
} }