It’s very unlikely that the dead will come to life and start chasing us humans around, and I don’t know what it is about that that makes one craves human flesh. Nonetheless, you never know what the hell humans are going to do next so it’s nice to be prepared.
My personal strategy is to find the highest point I can find, gather up supplies and much ammo, and climb up there and camp out until the invasion/infection/herd leaves town. In the worst case scenario, which would be the undead climbing up to my position, I would probably shoot myself in the head. I would rather die than let them use me as part of their army (because let’s face it, I’m pretty dangerous).
But none of this will ever come into use, so don’t worry about it.