diff options
Diffstat (limited to 'graphics/asymptote/pipestream.cc')
-rw-r--r-- | graphics/asymptote/pipestream.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/asymptote/pipestream.cc b/graphics/asymptote/pipestream.cc index 2375a98d42..bdde519e86 100644 --- a/graphics/asymptote/pipestream.cc +++ b/graphics/asymptote/pipestream.cc @@ -39,7 +39,7 @@ void pipeHandler(int) Signal(SIGPIPE,SIG_DFL); instance->pipeclose(); } - + void iopipestream::open(const mem::vector<string> &command, const char *hint, const char *application, int out_fileno) { @@ -131,10 +131,10 @@ ssize_t iopipestream::readbuffer() for(;;) { if((nc=read(out[0],p,size)) < 0) { if(errno == EAGAIN || errno == EINTR) {p[0]=0; break;} - else { - ostringstream buf; - buf << "read from pipe failed: errno=" << errno; - camp::reportError(buf); + else { + ostringstream buf; + buf << "read from pipe failed: errno=" << errno; + camp::reportError(buf); } nc=0; } |