diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-22T11·03+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2004-06-22T11·03+0000 |
commit | 5e2cf44a4d5d70f0dbed7b21257bd6d15538b3b2 (patch) | |
tree | 026f0ca4fc71c0d563a1de36b86ccad9156fc594 /src/libutil/util.cc | |
parent | 84007a09588b21487cbd3869bcb26c3e2c05b605 (diff) |
* Put WEXITSTATUS stuff somewhere else.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index d4345eac3699..5fb553d6dd52 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -611,3 +611,9 @@ string statusToString(int status) return "died abnormally"; } else return "succeeded"; } + + +bool statusOk(int status) +{ + return WIFEXITED(status) && WEXITSTATUS(status) == 0; +} |