Use the pid of the process for the tmp file