Access /proc/self rather than using getpid().