Created
March 3, 2010 10:26
-
-
Save ptzn/320505 to your computer and use it in GitHub Desktop.
passenger detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined?(PhusionPassenger) | |
PhusionPassenger.on_event(:starting_worker_process) do |forked| | |
if forked | |
# We're in smart spawning mode. | |
else | |
# We're in conservative spawning mode. We don't need to do anything. | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment