check pid before get message_queue_len