diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-05-02 22:39:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-05-02 22:39:48 +0000 |
commit | e0123041750b724daa1e5fb4e7e66b233b2b1bed (patch) | |
tree | 5491e0e6ce98808e0351753975b196cd9ce2df77 /railties/lib/commands/process/spawner.rb | |
parent | 2b0a1f4a219a7553400010c4ff01d24a9e143169 (diff) | |
download | rails-e0123041750b724daa1e5fb4e7e66b233b2b1bed.tar.gz rails-e0123041750b724daa1e5fb4e7e66b233b2b1bed.tar.bz2 rails-e0123041750b724daa1e5fb4e7e66b233b2b1bed.zip |
Distinguish the spawners for different processes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4324 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/process/spawner.rb')
-rw-r--r-- | railties/lib/commands/process/spawner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/process/spawner.rb b/railties/lib/commands/process/spawner.rb index 76d12dddbf..8b5d56b324 100644 --- a/railties/lib/commands/process/spawner.rb +++ b/railties/lib/commands/process/spawner.rb @@ -14,7 +14,7 @@ def daemonize #:nodoc: end class Spawner - def self.record_pid(name = "spawner", id = Process.pid) + def self.record_pid(name = "#{OPTIONS[:process]}.spawner", id = Process.pid) FileUtils.mkdir_p(OPTIONS[:pids]) File.open(File.expand_path(OPTIONS[:pids] + "/#{name}.pid"), "w+") { |f| f.write(id) } end |