From afe42033920f4c05748cc85e41010f16fda08867 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Feb 2023 20:40:30 +0200 Subject: [talks/lbs] Added exit status slide to processes --- src/talks/linuxgraphy-by-strabo/index.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') 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 -- cgit v1.3.1-26-gb76a