Guns in the cockpit? Pilots carrying guns? Nonsense! Any professional pilot who subscribes to this notion has forgotten the first rule of being an aviator ... FLY THE AIRPLANE. Pilots have no business leaving their post to quell an uprising in the cabin. Better to make the cockpit impregnable so the pilots can carry out their primary responsibility ... FLY THE AIRPLANE.
Here is a better plan. Let's train the flight attendents to carry out a sky marshal's job. Let the flight attendents carry guns. Train flight attendents to use firearms.