mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-10 00:30:13 +09:00
61631ea5f9
Unify startup: initializer starts every non-test process, Puma and Resque stop before fork and start again in the child. Only the contender thread releases the lock. Drop Puma::CLI / single_puma_process? special cases. Co-authored-by: Thomas Klemm <github@tklemm.eu>
10 lines
176 B
Ruby
10 lines
176 B
Ruby
require File.expand_path("../config/environment", File.dirname(__FILE__))
|
|
|
|
Signal.trap :SIGPROF do
|
|
Thread.list.each do |t|
|
|
puts t
|
|
puts t.backtrace
|
|
puts
|
|
end
|
|
end
|