Years ago, back in the '70s, when I did a lot of solo and duo hiking on the Muir Trail and in the Ventana Wilderness in California, I always had a S&W .44 magnum within easy reach. I never had to use it, but I had a close call with a pack of wild pigs with young. I came upon them straddling the trail and immediately retreated. Fortunately I found a rock I could get on top of out of their reach. They had started towards my location when the wind shifted and after a while they simply moved on. There were about 20 of them -- I would not have wanted to be trying to reload (extra ammo was in my pack)while they came at me.
Wild pigs is tricky creatures. Terrible vision but good noses. And they are smart. They will attack, run away and then circle back and attack again.
I hunted them down in south Texas. Mean suckers when they are riled up. And they always seem p.o'ed.