means that
relying on another person's death or departure to obtain an inheritance, position or other advantage can entail a long and uncertain wait.
The saying “It's ill waiting for dead men's shoes” can be used when it is bad and immoral to wait for someone’s death, retirement or failure, in order to get what you want, such as inheritance, promotion or….