From 7492352c363fd4bec7f54e74692c6f268fe046ff Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 23 Jun 2008 16:51:13 +0000 Subject: [PATCH] tweak stdout/stderr piping --- buildtool.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); } } } -- 2.30.2