Macro IS_CHILD_PID created to ease code reading.