From 8c3fedd243b69349b426144e5e2b94ef4aea6a4c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 8 Jul 2020 03:01:45 +0000 Subject: CTAN sync 202007080301 --- graphics/asymptote/pipestream.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'graphics/asymptote/pipestream.cc') diff --git a/graphics/asymptote/pipestream.cc b/graphics/asymptote/pipestream.cc index a809302bf5..2375a98d42 100644 --- a/graphics/asymptote/pipestream.cc +++ b/graphics/asymptote/pipestream.cc @@ -41,8 +41,7 @@ void pipeHandler(int) } void iopipestream::open(const mem::vector &command, const char *hint, - const char *application, const char *Fatal, - int out_fileno) + const char *application, int out_fileno) { if(pipe(in) == -1) { ostringstream buf; @@ -90,7 +89,6 @@ void iopipestream::open(const mem::vector &command, const char *hint, Running=true; pipeopen=true; pipein=true; - fatal=Fatal; block(false,true); } @@ -184,15 +182,13 @@ void iopipestream::wait(const char *prompt) { sbuffer.clear(); size_t plen=strlen(prompt); - size_t flen=strlen(fatal); do { readbuffer(); + if(*buffer == 0) camp::reportError(sbuffer); sbuffer.append(buffer); if(tailequals(sbuffer.c_str(),sbuffer.size(),prompt,plen)) break; - if(*fatal && tailequals(sbuffer.c_str(),sbuffer.size(),fatal,flen)) - camp::reportError(sbuffer); } while(true); } -- cgit v1.2.3