Sha256: 8a33d3f57024802e3c0818716eac888f6088e22097c84e2b28e6a28a107d3cd4

Contents?: true

Size: 226 Bytes

Versions: 9

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module Fusuma
  # Rename process
  module CustomProcess
    def fork
      Process.fork do
        Process.setproctitle(self.class.name.underscore.to_s)
        yield
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fusuma-2.2.0 lib/fusuma/custom_process.rb
fusuma-2.1.0 lib/fusuma/custom_process.rb
fusuma-2.0.5 lib/fusuma/custom_process.rb
fusuma-2.0.4 lib/fusuma/custom_process.rb
fusuma-2.0.3 lib/fusuma/custom_process.rb
fusuma-2.0.2 lib/fusuma/custom_process.rb
fusuma-2.0.1 lib/fusuma/custom_process.rb
fusuma-2.0.0 lib/fusuma/custom_process.rb
fusuma-2.0.0.pre2 lib/fusuma/custom_process.rb