Aviation regulators set the total hours pilots fly and how much sleep they must get between flights. During ultra-long-haul flights, pilots sleep in special cabins, which passengers can't access.