Title: TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles
Type: enhancement Stage: patch review
Components: Library (Lib) Versions:
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 2019-07-22 12:28 by python-dev.

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.
Date User Action Args
2019-07-22 12:28:47python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request14684
2019-07-22 12:10:54refi64create