Luckily there were 2 other pilots in the plane:
Plane with dead pilot lands safely in Newark, NJ
The Federal Aviation Administration says a plane carrying a pilot who died in mid-flight has landed safely at the airport in Newark, N.J.
Spokeswoman Arlene Salac says Continental Airlines Flight 61 landed at 11:49 a.m.
Airline spokeswoman Kelly Cripe says the pilot died of natural causes Thursday on the flight from Brussels, Belgium, to Newark.
Cripe says he was a 61-year-old man with more than 20 years of service to the airline.
She says the flight continued safely with two other pilots at the controls.
Cripe says the Boeing 777 carried 247 passengers.
As far as I can tell, the flight was not delayed, either.
UPDATE
Fox News says there was an announcement during the flight asking for a doctor, but the passengers were not told the pilot had died until after landing.
Noticias 24 says that the flight had the usual pilot and copilot, and that the third pilot was aboard the plane when the pilot died.
Did the pilot look like Peter Graves?
http://graphics2.jsonline.com/graphics/owlive/img/jun05/airplane.two0612_big.jpg
And you don’t know what the heck he was asking the boy then rent the film.