summaryrefslogtreecommitdiff
path: root/graphics/asymptote/pipestream.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
committerNorbert Preining <norbert@preining.info>2020-08-07 03:02:55 +0000
commit3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch)
tree1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/pipestream.cc
parentd99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff)
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/pipestream.cc')
-rw-r--r--graphics/asymptote/pipestream.cc10
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;
}