Fred
I do not have any problems with or with out death penalty. I don,t want to go into personal reason for it or against it, But I know what it means to loose loved once because lunatics walking into a shop and shooting at random customers which are unlucky in the wrong spot at the wrong time.
If someone gets his lawfull representation in courts thats fine with me too, but those pirates really don,t come to a ship with flowers in their hands, they come to hijack/kidnap and if needed also to kill. So, what you think should protect them from being killed all the while sailors do not have that protection at the moment when they are in that situation of being attacked.
Thankfully (for other reasons then explained here) we do NOT have guns on board, also when I personally, if they would be on board with no hesitation whatsoever shoot them on sight.
Also when I am fully aware, if that would happen, that I would be prosecuted instead of the assailant. Defending your own life is nowadays not in high esteem in some countries, protecting the criminals is more important.