Use a separate connection instance for each pid, since
it is not safe to use a connection created in a parent
process.

See: https://www.sqlite.org/howtocorrupt.html
Bug: https://bugs.gentoo.org/736334

Zac Medico (3):
  Add cached portage.getpid() function
  sqlite: add lazy connection init
  sqlite: fork safety (bug 736334)

 lib/portage/__init__.py                       | 14 +++++++++
 lib/portage/cache/sqlite.py                   | 30 +++++++++++++++----
 lib/portage/tests/dbapi/test_auxdb.py         | 13 ++++++--
 .../tests/process/test_AsyncFunction.py       | 24 +++++++++++++++
 4 files changed, 74 insertions(+), 7 deletions(-)

-- 
2.25.3


Reply via email to