isForkedChild function

Checks whether or not we are running in a forked child process