about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-15 01:53:33 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-15 13:06:55 -0700
commitdc771cd98413788615832d6e1b875253149a6475 (patch)
tree8cc7c8494afa912c594c12469a5d1aa99310ecab /lib
parent966d55b875f714c9debe08a9b9d265204da2a845 (diff)
downloadunicorn-dc771cd98413788615832d6e1b875253149a6475.tar.gz
So don't bother checking them again.  Configurator already
ensures that they're Proc objects for us, and we've been
forgetting to check @before_fork since the beginning of
time anyways...  Consistency + less code = good
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 3f15883..9715368 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -353,7 +353,7 @@ module Unicorn
           io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
         end
         logger.info "executing #{cmd.inspect} (in #{Dir.pwd})"
-        @before_exec.call(self) if @before_exec
+        @before_exec.call(self)
         exec(*cmd)
       end
       proc_name 'master (old)'
@@ -438,7 +438,7 @@ module Unicorn
       @start_ctx = @workers = @rd_sig = @wr_sig = nil
       @listeners.each { |sock| sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) }
       worker.tempfile.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
-      @after_fork.call(self, worker) if @after_fork # can drop perms
+      @after_fork.call(self, worker) # can drop perms
       @request = HttpRequest.new(logger)
       build_app! unless @preload_app
     end