So when a child dies parent gets SIGCHLD
but if parent dies before doing wait(), the child is reparented to init
. At this point in time the child is a zombie
i.e. <defunct>
.
What happens next?
Does init
do wait() on that child? if yes, when does it do it? Any guarantees regarding time-limit?