Methods
Public Instance methods
recv_io()

Receive an IO object (i.e. a file descriptor) from this IO channel. This only works if this IO channel is a Unix socket.

Raises SystemCallError if something went wrong.

     # File lib/passenger/utils.rb, line 332
332:         def recv_io
333:                 return IO.new(Passenger::NativeSupport.recv_fd(self.fileno))
334:         end
send_io(io)

Send an IO object (i.e. a file descriptor) over this IO channel. This only works if this IO channel is a Unix socket.

Raises SystemCallError if something went wrong.

     # File lib/passenger/utils.rb, line 324
324:         def send_io(io)
325:                 Passenger::NativeSupport.send_fd(self.fileno, io.fileno)
326:         end