Mercurial > octave-nkf
diff src/dirfns.cc @ 5144:25b090e1be9f
[project @ 2005-02-15 12:06:05 by jwe]
author | jwe |
---|---|
date | Tue, 15 Feb 2005 12:06:44 +0000 |
parents | b04b30d30c66 |
children | dd07ee8af4b3 |
line wrap: on
line diff
--- a/src/dirfns.cc Mon Feb 14 15:48:47 2005 +0000 +++ b/src/dirfns.cc Tue Feb 15 12:06:44 2005 +0000 @@ -182,16 +182,8 @@ unwind_protect::add (cleanup_iprocstream, cmd); - // XXX FIXME XXX -- Perhaps we should read more than one character - // at a time and find a way to avoid the call to octave_usleep as - // well? - if (cmd && *cmd) { - // This is a bit of a kluge... - - octave_usleep (100); - char ch; OSSTREAM output_buf; @@ -204,16 +196,7 @@ output_buf << ch; } else - { - if (! cmd->eof () && errno == EAGAIN) - { - cmd->clear (); - - octave_usleep (100); - } - else - break; - } + break; } output_buf << OSSTREAM_ENDS;