lib/arsenicum/main.rb in arsenicum-0.1.2 vs lib/arsenicum/main.rb in arsenicum-0.1.3

- old
+ new

@@ -1,26 +1,27 @@ module Arsenicum module Main def run(config_file) + $0 = 'arsenicum[main]' + config = Arsenicum::Configuration.new config_file = File.expand_path config_file script = File.read config_file config.instance_eval script, config_file, 1 if config.daemon - Process.daemon + Process.daemon true, true File.open(config.pidfile_path, 'w:UTF-8') do |f| f.puts $$ end end configure_io config configure_log config threads = config.queue_configurations.map{|qc|qc.build.start_async} - begin threads.each(&:join) rescue Interrupt end end