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.

Author Jeffrey.Kintscher
Recipients Jeffrey.Kintscher, giampaolo.rodola, josh.r, riccardomurri, tarek
Date 2019-06-20.08:04:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561017895.23.0.435588102528.issue36422@roundup.psfhosted.org>
In-reply-to
Content
I implemented an onerror callback for tempfile.TemporaryDirectory() and confirmed that it cannot be used to unmount a mount point.  Attempting to unmount the mount point from within the callback results in a resource busy error.  It may be related to shutil.rmtree() holding an open file descriptor to the parent directory of the mount point.

I uploaded the program I used for testing on macOS (test-mounted-image.py). The subprocess.run() calls can be modified to run it on other platforms.
History
Date User Action Args
2019-06-20 08:04:55Jeffrey.Kintschersetrecipients: + Jeffrey.Kintscher, giampaolo.rodola, tarek, riccardomurri, josh.r
2019-06-20 08:04:55Jeffrey.Kintschersetmessageid: <1561017895.23.0.435588102528.issue36422@roundup.psfhosted.org>
2019-06-20 08:04:55Jeffrey.Kintscherlinkissue36422 messages
2019-06-20 08:04:55Jeffrey.Kintschercreate