Write the pid of the master process to file