Sha256: 77e049f3e7f40be9afb64066a98653f91ae3fe901e8f8f3b97ab78dfb6151199
Contents?: true
Size: 556 Bytes
Versions: 11
Compression:
Stored size: 556 Bytes
Contents
require 'bundler/setup' require 'socket' require 'einhorn/worker' def einhorn_main version = File.read(File.join(File.dirname(__FILE__), "version")) $stderr.puts "Worker starting up!" serv = Socket.for_fd(ENV['EINHORN_FD_0'].to_i) $stderr.puts "Worker has a socket" Einhorn::Worker.ack! $stderr.puts "Worker sent ack to einhorn" while true s, addrinfo = serv.accept $stderr.puts "Worker got a socket!" s.write(version) s.flush s.close $stderr.puts "Worker closed its socket" end end einhorn_main if $0 == __FILE__
Version data entries
11 entries across 11 versions & 1 rubygems