In case of custom PID, as in case of MPI ranks, use getppid to check if the current process is the same as parent before compressing