benoitc/gunicorn — pull request #446 by hongqn (2012-12-03 15:04:37+00:00)
Title: add nworkers_changed hook

We use the TTIN/TTOU signal to dynamically adjust number of workers at runtime, and wish to export the current number of workers to a file for external access (e.g. [munin](http://munin-monitoring.org)). So I create this patch to add an nworkers_changed(server, nworkers) hook.

This hook will be called whenever the number of workers is set.