Use read pipe to detect liveness of child.
Close the life fd.
Extract Pool class to represent a process pool.