lib/localjob/worker.rb in localjob-0.3.0 vs lib/localjob/worker.rb in localjob-0.4.0

- old
+ new

@@ -26,11 +26,10 @@ trap_signals return work_thread if thread create_pid_file(@options[:pid_file]) - deamonize if @options[:deamon] loop { break unless shift_and_process } end def kill @@ -80,13 +79,9 @@ end def trap_signals Signal.trap("QUIT") { shutdown } Signal.trap("INT") { shutdown } - end - - def deamonize - Process.daemon(true, true) end def create_pid_file(path) File.open(path, 'w') { |f| f << self.pid } if path end