Define a constant with a name that’s unlikely to clash with anything the application defines, so that they can detect whether they’re running under Phusion Passenger.
# File lib/phusion_passenger/utils.rb, line 1060 def recv_io(klass = IO) return klass.for_fd(PhusionPassenger::NativeSupport.recv_fd(self.fileno)) end
# File lib/phusion_passenger/utils.rb, line 1064 def send_io(io) PhusionPassenger::NativeSupport.send_fd(self.fileno, io.fileno) end