From: ishmal Date: Mon, 23 Jun 2008 16:51:13 +0000 (+0000) Subject: tweak stdout/stderr piping X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7492352c363fd4bec7f54e74692c6f268fe046ff;p=inkscape.git tweak stdout/stderr piping --- diff --git a/buildtool.cpp b/buildtool.cpp index b0570ed32..852e65124 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -4115,7 +4115,7 @@ bool MakeBase::executeCommand(const String &command, args[2] = (char *)command.c_str(); args[3] = NULL; execv("/bin/sh", args); - _exit(EXIT_FAILURE); + exit(EXIT_FAILURE); } String outb; @@ -4145,20 +4145,20 @@ bool MakeBase::executeCommand(const String &command, if (FD_ISSET(outRead, &fdset)) { if (read(outRead, &ch, 1) <= 0) - outOpen = false; + { outOpen = false; } else if (ch <= 0) - outOpen = false; + { /* outOpen = false; */ } else - outb.push_back(ch); + { outb.push_back(ch); } } if (FD_ISSET(errRead, &fdset)) { if (read(errRead, &ch, 1) <= 0) - errOpen = false; + { errOpen = false; } else if (ch <= 0) - errOpen = false; + { /* errOpen = false; */ } else - errb.push_back(ch); + { errb.push_back(ch); } } }