update pid if new process is alive