From 4c8c891b76c2a44a0ae76eea8f07934b984caab0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Dec 2009 23:30:52 -0800 Subject: simplify pid assignment Durr.... --- lib/unicorn.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 68121b4..71d5994 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -249,9 +249,6 @@ module Unicorn def stdout_path=(path); redirect_io($stdout, path); end def stderr_path=(path); redirect_io($stderr, path); end - alias_method :set_pid, :pid= - undef_method :pid= - # sets the path for the PID file of the master process def pid=(path) if path @@ -274,7 +271,7 @@ module Unicorn File.rename(fp.path, path) fp.close end - self.set_pid(path) + super(path) end # add a given address to the +listeners+ set, idempotently -- cgit v1.2.3-24-ge0c7