mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
* Put WEXITSTATUS stuff somewhere else.
This commit is contained in:
parent
84007a0958
commit
5e2cf44a4d
4 changed files with 11 additions and 3 deletions
|
@ -611,3 +611,9 @@ string statusToString(int status)
|
|||
return "died abnormally";
|
||||
} else return "succeeded";
|
||||
}
|
||||
|
||||
|
||||
bool statusOk(int status)
|
||||
{
|
||||
return WIFEXITED(status) && WEXITSTATUS(status) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue