Skip to main content

encode_wstatus

Function encode_wstatus 

Source
fn encode_wstatus(exit_code: i32) -> i32
Expand description

Encode exit_code as a Linux wstatus word: W_EXITCODE(code, 0).

The low 7 bits are the termination signal (0 = exited normally). Bits 8-15 are the exit code.