4 #include "externalaction.h"
9 int ExternalAction::check()
15 if(waitpid(pid, &status, WNOHANG)==pid)
19 return WEXITSTATUS(status);
27 void ExternalAction::launch()
29 if(builder.get_verbose()>=1)
31 for(list<string>::const_iterator i=argv.begin(); i!=argv.end(); ++i)
43 char *argv_[argv.size()+1];
44 for(CountingIterator<string, list<string>::iterator> i=argv.begin(); i!=argv.end(); ++i)
45 argv_[i.count()]=strdup(i->c_str());
47 execvp(argv_[0], argv_);