in reply to Re^4: Setting an alarm
in thread Setting an alarm

I had if (!defined($child_code)) where I needed if (defined($child_code)). Fixed.