grantjenks / python-diskcache

Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.

Home Page:http://www.grantjenks.com/docs/diskcache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PR for fork deadlock

arieleiz opened this issue · comments

Hi,

Here is a PR to fix a deadlock in python-diskache when forking with the transaction lock locked:

#299.

When a fork occurs while the sqlite db is mid-transaction, the sqlite transaction lock remains locked forever in the forkee, deadlocking it.

Closing in favor of the PR for discussion.