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