fix bug of forgoting shmdt when nginx reload