Adding pid to tmp file