Is Zombie-pigman aggro contagious?
From the wiki:
If a player attacks a zombie pigman in multiplayer, they turn hostile to ALL players. If the player who attacked them dies or goes away, the zombie pigmen attack the next player who is closest to them.
Attacking zombie pigman makes them hostile, which means they will attack everyone that they see just like normal zombies, until they die.