directly to the directory containing the pid instead of pointing to /proc/curproc, because some programs rely on calling readlink on /proc/self to get the pid.