# And maintain the population. while (1) { sleep; # wait for a signal (i.e., child's death) print "got woken up by signal\n"; for ($i = $children; $i < $PREFORK; $i++) { make_new_child(); # top up the child pool } }