TL;DR: run Gitea version >= 1.16.9 to avoid zombies
-The first issue about zombie processes created by Gitea was reported in 2017 and resurfaced on a regular basis. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:
+The first issue about zombie processes created by Gitea was reported in 2017 and resurfaced on a regular basis. Although it does not look pretty, zombie processes are leftovers that do not consume resources and never caused any kind of harm. Here is one scenario that will create a zombie:
git remote update
git remote update
spawns yet another process, git fetch
There should be no need for an admin running Gitea to worry about those gory details, it should be taken care of regardless of the environment Gitea runs in. Fortunately there is a very simple way to avoid the creation of zombies by ensuring that all Gitea child process are process group leaders. In a nutshell it means that when the child is killed all its children and grand children are also killed.
-A patch was introduced in Gitea 1.17 and backported to Gitea 1.16.9 so that all git
commands are created as process group leaders and solve this problem for good.