mitsuhiko/werkzeug — pull request #289 by shuhaowu (2013-05-04 01:01:25+00:00)
Title: Added a cleanup function for the reloader.

Occasionally you lock a resource in your server to a single process but
you would like to release it when you reload (otherwise your app crashes
with some sort of lock error). This change is for those situations.

Not sure how to write a test for this, though. Maybe someone can point
me to the right direction.

For an example of a situation like this, see (note this is bottle, but
the idea is the same):
https://groups.google.com/forum/?fromgroups=#!topic/py-leveldb/XHo27ITdvvI