Convert status to exit code

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-09-19 12:24:53 -07:00
parent 26262dff00
commit 17b6f3b64c
2 changed files with 6 additions and 1 deletions

View file

@ -125,3 +125,8 @@ func StartReaper() {
}
}()
}
// StatusToExitCode converts wait status code to an exit code
func StatusToExitCode(status int) int {
return ((status) & 0xff00) >> 8
}