in jail, probation, paying off fines , etc......or maybe even death penalty.
Here in the U.S. Capital punishment is only used within Twenty-Eight states and rarely used.
There are many types of Capital Punishment; lethal injection, electrocution, lethal gas ,hanging,firing squad.
These are nothing compared to the way pirates would punish/torture . There were many ways a pirate would torture/punish fellow pirates or other people. One was "Governor of an Island " also known as marooning.
These were punishments for pirates who would leave the ship or leave their station during battle. These pirates would be left on a deserted small island ,that could not support life, with only what they had on, water, a pistol , gun powder and a shot....so they could commit suicide because being a Governor of a small island was not what it seems.
Another way of punishment/torture pirates would use to gain information would hanging somebody by their privates until it was torn from their bodies.
Women would also receive torture/punishment. According to the Pirates Arsenal of torture," One Spaniard reported Henry Morgan and his crew set a naked woman "upon a baking stove and roasted [her], because she did not confess" where she stashed her money." Some women would go through repeated rapes, and if they survived and returned to society, society often considered them damaged goods.
Society wouldn't even help the women instead call them damage goods...that alone could have been torture because people might call these women nasty things for something they could/could not have prevented.
Vallar, Cindy. “Punishing Their Own and Hunting Prey" and "The Pirates Arsenal of Torture."
http://www.cindyvallar.com/huntprey.html
http://www.cindyvallar.com/torture.html