diff options
[talks/lbs] Added exit status slide to processes
1 files changed, 14 insertions, 0 deletions
| -rw-r--r-- | src/talks/linuxgraphy-by-strabo/index.md | 14 |
diff --git a/src/talks/linuxgraphy-by-strabo/index.md b/src/talks/linuxgraphy-by-strabo/index.md index 75cf951..9d828b0 100644 --- a/src/talks/linuxgraphy-by-strabo/index.md +++ b/src/talks/linuxgraphy-by-strabo/index.md @@ -512,6 +512,20 @@ A process can be **forked**, meaning a new process is created, with the same und +&&clide &&font35 + +#### Exit status + +Every process, before being deleted (and after being in a Terminated state) passes a small number, called the [exit status](https://en.wikipedia.org/wiki/Exit_status) (exit code), to it's parent process. +For all intents and purposes, this number is an 8bit unsigned integer, meaning it's value is between 0 and 256. + +Pretty much universally, an exit code of 0 signifies a successful termination, and anything else specifies some sort of error code. +Different programs specify the meaning of an exit code in different ways, some assign each number to a specific error, other use the bits representing the number as flags. + +&&/font &&/clide + + + &&slide &&font35 ### 2.3.2 Memory management |