Ubuntu 'select' Fix
- Added a delay before the 'select' call on STDIN, to allow time for the data to buffer. Experimental patch.
This commit is contained in:
@@ -279,6 +279,9 @@ bool A3::is_command (
|
||||
// Add an Arg for every word from std::cin.
|
||||
void A3::append_stdin ()
|
||||
{
|
||||
// Delay, to give it a chance to buffer the input.
|
||||
delay (0.01);
|
||||
|
||||
// Use 'select' to determine whether there is any std::cin content buffered
|
||||
// before trying to read it, to prevent blocking.
|
||||
struct timeval tv;
|
||||
|
||||
Reference in New Issue
Block a user