X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.cpp;h=2409e05a650a7fb5c67885d799f9359ad550037b;hb=4629d189a531c962cf15a511df787f30c3adcb02;hp=4d2019a5fd28c2a1954884f8683fdb4a691b5292;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/misc.cpp b/source/misc.cpp index 4d2019a..2409e05 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -5,17 +5,17 @@ Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#include #include #include #include #include +#include #include "misc.h" using namespace std; using namespace Msp; -string run_command(const StringList &argv) +string run_command(const StringList &argv, int *status) { int pfd[2]; pipe(pfd); @@ -43,7 +43,7 @@ string run_command(const StringList &argv) ::exit(1); } else if(pid==-1) - cerr<<"Failed to execute "<