Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: [gentoo-portage-dev] [PATCH 0/3] sqlite: fork safety (bug 736334)
Date: Sat, 08 Aug 2020 04:13:23
Message-Id: 20200808040857.77352-1-zmedico@gentoo.org
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

Replies