python-diskcache
python-diskcache copied to clipboard
Fix fork deadlock
When a fork occurs while the sqlite db is mid-transaction, so sqlite transaction lock remains locked forever in the foree, deadlocking it.
This patch protects against this case using os.register_at_fork().