correct the mistake happen in last time and change the value from rc to the function getpid()