class Object

Constants

IN_PHUSION_PASSENGER

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