[New-bugs-announce] [issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles
Ryan Gonzalez
report at bugs.python.org
Mon Jul 22 08:10:54 EDT 2019
New submission from Ryan Gonzalez <rymg19 at gmail.com>:
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.
----------
components: Library (Lib)
messages: 348295
nosy: refi64
priority: normal
severity: normal
status: open
title: TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37650>
_______________________________________
More information about the New-bugs-announce
mailing list