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.
Public Instance Methods
recv_io(klass = IO)click to toggle source
# File lib/phusion_passenger/utils.rb, line 1060defrecv_io(klass = IO)
returnklass.for_fd(PhusionPassenger::NativeSupport.recv_fd(self.fileno))
end
send_io(io)click to toggle source
# File lib/phusion_passenger/utils.rb, line 1064defsend_io(io)
PhusionPassenger::NativeSupport.send_fd(self.fileno, io.fileno)
end