Fixed "check returncode"
This commit is contained in:
parent
99976bf2a6
commit
f9456be2ec
@ -100,9 +100,9 @@ int main(int argc, char *argv[]){
|
||||
|
||||
wait(&statval);
|
||||
if(verbose)
|
||||
printf("Exit: %d\n", statval);
|
||||
printf("Exit: %d\n", WEXITSTATUS(statval));
|
||||
|
||||
if(statval == STATUS_OK){
|
||||
if(WEXITSTATUS(statval) == STATUS_OK){
|
||||
// If exit is STATUS_OK, write file with nothing in it
|
||||
FILE *f = fopen(VRFFILE, "w");
|
||||
if(f == NULL){
|
||||
|
Loading…
Reference in New Issue
Block a user