This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles
Type: enhancement Stage: patch review
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: refi64
Priority: normal Keywords: patch

Created on 2019-07-22 12:10 by refi64, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 14908 open python-dev, 2019-07-22 12:28
Messages (1)
msg348295 - (view) Author: Ryan Gonzalez (refi64) * Date: 2019-07-22 12:10
If e.g. a tar archive is extracted that has dates from several months ago, if systemd-tmpfiles runs to clean up data, then it may delete that data while the directory is still being used. This can be avoided by holding a LOCK_SH on the directory while it's being used.
History
Date User Action Args
2022-04-11 14:59:18adminsetgithub: 81831
2019-07-22 12:28:47python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request14684
2019-07-22 12:10:54refi64create