Author: Unknown
Subject: Status when reaping zombies
Date: Friday, 04 Dec 2020, 22:06:38
When reaping zombies, I understand that we are supposed to use the WNOHANG flag. As we are going through our list of backgrounded pids, how can we tell when a Zombie has been reaped? Can we even remove completed pids from our list? If I do status=-1 waitpid(pid, &status, WNHOHANG); will status only change from negative 1 to a number >= 0 if the child is finished processing?PREV INDEX NEXT