Orphan Processとは?
orphan processは、親がすでに終了したがまだ動作中のプロセスです。OSはそれをinitプロセスへreparentし、initは終了時にそのexit statusを回収する義務を引き継ぎます。orphan化は正常であり、新しい親が子をreapする限り無害です。
なぜ重要か
終了したCIステップが残したorphanのbackgroundプロセスは、再利用されるrunner上でポートやファイルを保持し続けることがあります。それらがinitへreparentされると知っていれば、それらを片付けるために適切なinitが必要な理由が分かります。
関連ガイド
What Is the Difference Between a Zombie and an Orphan?A zombie has finished but its exit status is uncollected, while an orphan is still running but has lost its p…
What Is an Init System?An init system is the first process the kernel starts; it boots and supervises other services and adopts orph…
What Is Reaping a Child Process?Reaping is when a parent calls a wait operation to read a finished child exit status, freeing the kernel slot…