Methods
Public Instance methods
close_on_exec!()
     # File lib/phusion_passenger/utils.rb, line 527
527:         def close_on_exec!
528:                 if defined?(Fcntl::F_SETFD)
529:                         fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
530:                 end
531:         end
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/phusion_passenger/utils.rb, line 522
522:                 def recv_io
523:                         return IO.new(PhusionPassenger::NativeSupport.recv_fd(self.fileno))
524:                 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/phusion_passenger/utils.rb, line 514
514:                 def send_io(io)
515:                         PhusionPassenger::NativeSupport.send_fd(self.fileno, io.fileno)
516:                 end