PHP 8.2.31
Preview: fork.rb Size: 612 B
//proc/thread-self/root/opt/alt/ruby22/lib64/ruby/2.2.0/irb/cmd/fork.rb

#
#   fork.rb -
#   	$Release Version: 0.9.6 $
#   	$Revision: 47266 $
#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#


# :stopdoc:
module IRB
  module ExtendCommand
    class Fork<Nop
      def execute
        pid = send ExtendCommand.irb_original_method_name("fork")
        unless pid
          class << self
            alias_method :exit, ExtendCommand.irb_original_method_name('exit')
          end
          if iterator?
            begin
              yield
            ensure
              exit
            end
          end
        end
        pid
      end
    end
  end
end
# :startdoc:


Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
507 B lrw-r--r-- 2014-08-09 01:36:49
Edit Download
612 B lrw-r--r-- 2014-08-24 07:16:25
Edit Download
664 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
1.17 KB lrw-r--r-- 2014-08-09 02:02:58
Edit Download
522 B lrw-r--r-- 2014-08-24 07:16:25
Edit Download
646 B lrw-r--r-- 2014-08-09 01:36:49
Edit Download
624 B lrw-r--r-- 2014-08-09 01:36:49
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).