X-Git-Url: https://ruin.nu/git/?p=popboot.git;a=blobdiff_plain;f=action.cpp;h=5dbe86954cbbd29644ba710d35dd8585b2774c62;hp=51e11e051e2d71de8b8419f20ca3a36bf5298ab1;hb=HEAD;hpb=318003cdb8615b39ef71761f55ac2159caabbf47 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); }