In a randomized study, the rate of postshunt encephalopathy was significantly lower after distal splenorenal shunting than after mesocaval shunting. Either shunt can be performed electively with a low operative mortality. If initial hemorrhage cannot be controlled, mortality may be minimized by mesocaval shunting. Advanced cirrhosis is not a contraindication to elective or emergency portasystemic shunting.