only call getpid() once