I've never hunted with my dogs around them, but I suppose you would break a dog off of them just like anything else. If you were to run across a pack with a set of dogs that didn't know any better, then I guess you would just hope for the best.
IF the dogs know their job they won't mess with them, not the same scent as a hog.
Maybe it's just coincidence, but I've never seen a hunting dog of any type that was born knowing to hunt a specific animal. Every dog I've ever worked that ended up a keeper in the end was gamey as heck as a pup. It was my job to not only show the dog what I intended him/her to hunt, but also what I DIDN'T want him/her to hunt. Most every young dog I've been around (that hadn't been previously corrected) would chase anything that would run in the woods.