System call more accurate with getppid