O Que É Fazer Reap de um Child Process?
Fazer reap de um child process significa que o pai invoca uma chamada wait para recuperar o exit status de um filho que terminou, o que permite ao kernel remover a entrada do filho da process table. Até que o pai faça reap, o filho morto permanece como zombie. Init systems fazem reap de filhos órfãos automaticamente.
Por que isso importa
Um container ou runner que roda uma árvore de processos mas não faz reap deixa uma pilha crescente de zombies. É por isso que processos init mínimos existem para atuar como um reaper confiável.
Guias relacionados
What Is the Wait System Call?The wait system call lets a parent process pause until a child terminates and then read the child exit status…
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…