ExitStatus
ExitStatus is a representation of how a program or child process terminated. It encodes information about the outcome of execution, typically including an exit code that indicates success or failure and, on some systems, additional details such as termination by a signal.
In POSIX and Unix-like systems, the exit status is delivered to the parent process via wait or
Windows reports exit codes through the GetExitCodeProcess API. An exit code is a 32-bit value; zero typically
In programming languages there are language-specific representations. For example, Rust provides a type named ExitStatus in
Overall, exit status conveys whether a process finished cleanly and, if not, why it did not succeed.