summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f456197)
raw | patch | inline | side by side (parent: f456197)
author | ishmal <ishmal@users.sourceforge.net> | |
Mon, 23 Jun 2008 16:51:13 +0000 (16:51 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Mon, 23 Jun 2008 16:51:13 +0000 (16:51 +0000) |
buildtool.cpp | patch | blob | history |
diff --git a/buildtool.cpp b/buildtool.cpp
index b0570ed329755f48969d9e2d84a889218c357c19..852e651247c4548088af574053ddebe0e4781d4c 100644 (file)
--- a/buildtool.cpp
+++ b/buildtool.cpp
args[2] = (char *)command.c_str();
args[3] = NULL;
execv("/bin/sh", args);
- _exit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
String outb;
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); }
}
}