Behavior of tempfile temp files when scripts killed, interpreter crashes, server crashes?

Malcolm Greene python at bdurham.com
Thu Jul 28 17:28:45 EDT 2016


Hi Eryk,

Awesome! Thank you very much for your detailed answer!!

Malcolm

<snipped>
Linux has the O_TMPFILE open() flag [1]. This creates an anonymous file
that gets automatically deleted when the last open file descriptor is
closed. If the file isn't opened O_EXCL, then you can make it permanent
by linking it back into the filesystem. For example: ...
</snipped>



More information about the Python-list mailing list