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:
parent
dc3c44e927
commit
3af3baa457
1 changed files with 4 additions and 4 deletions
|
@ -173,13 +173,13 @@ public class OutputHandler extends Handler {
|
|||
|
||||
if (!_isStdError && !_isTerminal){
|
||||
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
|
||||
available = checkAvailable();
|
||||
}
|
||||
if (available == 0){
|
||||
// it's possible that there is no output for something
|
||||
// in the non-TTY case we need to prompt
|
||||
available = checkAvailable();
|
||||
if (available == 0){
|
||||
return new String[0];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue