From c19a6a3fc5d9f561e2f5ac905db794eb0fa71b2a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 27 Dec 2021 01:33:03 +0100 Subject: Content fix --- posts/2021-12-25-running-golang-application-as-pid1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts/2021-12-25-running-golang-application-as-pid1.md b/posts/2021-12-25-running-golang-application-as-pid1.md index 1eef97b..cfbf447 100644 --- a/posts/2021-12-25-running-golang-application-as-pid1.md +++ b/posts/2021-12-25-running-golang-application-as-pid1.md @@ -128,7 +128,7 @@ func main() { } ``` -If you notice, we have a forever loop in the main, with a simple sleep of 1 second to not overwhelm the CPU. +If you notice, we have a forever loop in the main, with a simple sleep of 1 second to not overwhelm the CPU. This is because PID 1 should never complete and exit. That would result in kernel panic. There are two ways of compiling Golang application. Statically and dynamically. -- cgit v1.2.3