1 |
Use a separate connection instance for each pid, since |
2 |
it is not safe to use a connection created in a parent |
3 |
process. |
4 |
|
5 |
See: https://www.sqlite.org/howtocorrupt.html |
6 |
Bug: https://bugs.gentoo.org/736334 |
7 |
|
8 |
Zac Medico (3): |
9 |
Add cached portage.getpid() function |
10 |
sqlite: add lazy connection init |
11 |
sqlite: fork safety (bug 736334) |
12 |
|
13 |
lib/portage/__init__.py | 14 +++++++++ |
14 |
lib/portage/cache/sqlite.py | 30 +++++++++++++++---- |
15 |
lib/portage/tests/dbapi/test_auxdb.py | 13 ++++++-- |
16 |
.../tests/process/test_AsyncFunction.py | 24 +++++++++++++++ |
17 |
4 files changed, 74 insertions(+), 7 deletions(-) |
18 |
|
19 |
-- |
20 |
2.25.3 |