fn encode_wstatus(exit_code: i32) -> i32
Encode exit_code as a Linux wstatus word: W_EXITCODE(code, 0).
exit_code
wstatus
W_EXITCODE(code, 0)
The low 7 bits are the termination signal (0 = exited normally). Bits 8-15 are the exit code.