public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH 0/3] sqlite: fork safety (bug 736334)
@ 2020-08-08  4:08 Zac Medico
  2020-08-08  4:08 ` [gentoo-portage-dev] [PATCH 1/3] Add cached portage.getpid() function Zac Medico
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Zac Medico @ 2020-08-08  4:08 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Zac Medico

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-08  6:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-08  4:08 [gentoo-portage-dev] [PATCH 0/3] sqlite: fork safety (bug 736334) Zac Medico
2020-08-08  4:08 ` [gentoo-portage-dev] [PATCH 1/3] Add cached portage.getpid() function Zac Medico
2020-08-08  5:51   ` Michał Górny
2020-08-08  6:07   ` [gentoo-portage-dev] [PATCH 1/3 v2] " Zac Medico
2020-08-08  4:08 ` [gentoo-portage-dev] [PATCH 2/3] sqlite: add lazy connection init Zac Medico
2020-08-08  4:08 ` [gentoo-portage-dev] [PATCH 3/3] sqlite: fork safety (bug 736334) Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox