Mercurial > hg > octave-nkf
diff src/oct-procbuf.cc @ 3531:97cf542676e1
[project @ 2000-02-02 11:30:40 by jwe]
author | jwe |
---|---|
date | Wed, 02 Feb 2000 11:33:32 +0000 |
parents | d14c483b3c12 |
children | 71bd2d124119 |
line wrap: on
line diff
--- a/src/oct-procbuf.cc +++ b/src/oct-procbuf.cc @@ -162,11 +162,15 @@ if (status < 0 || ::close (fd ()) < 0) return -1; - do - { - wait_pid = ::waitpid (proc_pid, &wstatus, 0); - } - while (wait_pid == -1 && errno == EINTR); + { + using namespace std; + + do + { + wait_pid = ::waitpid (proc_pid, &wstatus, 0); + } + while (wait_pid == -1 && errno == EINTR); + } if (wait_pid == -1) return -1;