X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=action.cpp;h=5dbe86954cbbd29644ba710d35dd8585b2774c62;hb=7d7cad7f8103d106a3bd6df6e08f11eab931a658;hp=51e11e051e2d71de8b8419f20ca3a36bf5298ab1;hpb=318003cdb8615b39ef71761f55ac2159caabbf47;p=popboot.git diff --git a/action.cpp b/action.cpp index 51e11e0..5dbe869 100644 --- a/action.cpp +++ b/action.cpp @@ -45,7 +45,7 @@ int Action::execute() const{ retval = system(_executable.c_str()); _exit(WEXITSTATUS(retval)); } - waitpid(proc,&retval,NULL); + waitpid(proc,&retval,0); cout << "Done executing: " << _name << ", returnvalue: " << WEXITSTATUS(retval) << endl; return WEXITSTATUS(retval); }