python-diskcache icon indicating copy to clipboard operation
python-diskcache copied to clipboard

Fix fork deadlock

Open arieleiz opened this issue 2 years ago • 0 comments

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().

arieleiz avatar Dec 24 '23 14:12 arieleiz