It is possible to attack following Pigs by Ctrl-clicking on them. Attacking the Pig will cause it to become aggressive and stop following the Player. Feeding the Pig meat will stop it from attacking, and then feeding it another will cause it to follow again.