* Put WEXITSTATUS stuff somewhere else.

This commit is contained in:
Eelco Dolstra 2004-06-22 11:03:41 +00:00
parent 84007a0958
commit 5e2cf44a4d
4 changed files with 11 additions and 3 deletions

View file

@ -611,3 +611,9 @@ string statusToString(int status)
return "died abnormally";
} else return "succeeded";
}
bool statusOk(int status)
{
return WIFEXITED(status) && WEXITSTATUS(status) == 0;
}