Sha256: 0e5c956c620f843407c00ee85a77d3a22c9617661676ca7f622a8fe49eda52f4

Contents?: true

Size: 263 Bytes

Versions: 10

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

Exception.__disable_sanitized_backtrace__ = true

puts "pid: #{Process.pid}"

Process.daemon(true, true)

Polyphony::ThreadPool.process do
  puts "Hello world from pid #{Process.pid}"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
polyphony-0.45.0 examples/core/xx-daemon.rb
polyphony-0.44.0 examples/core/xx-daemon.rb
polyphony-0.43.11 examples/core/xx-daemon.rb
polyphony-0.43.10 examples/core/xx-daemon.rb
polyphony-0.43.9 examples/core/xx-daemon.rb
polyphony-0.43.8 examples/core/xx-daemon.rb
polyphony-0.43.6 examples/core/xx-daemon.rb
polyphony-0.43.5 examples/core/xx-daemon.rb
polyphony-0.43.4 examples/core/xx-daemon.rb
polyphony-0.43.3 examples/core/xx-daemon.rb