Misread the /proc/PID/stat docs.

Check was not properly working with large numbers of children.

Now fixed