Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #111996

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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Malcolm Greene <python@bdurham.com>
Newsgroups comp.lang.python
Subject Re: Behavior of tempfile temp files when scripts killed, interpreter crashes, server crashes?
Date Thu, 28 Jul 2016 17:28:45 -0400
Lines 12
Message-ID <mailman.11.1469741327.6033.python-list@python.org> (permalink)
References <1469627937.3315162.678210321.47361EB5@webmail.messagingengine.com> <CACL+1asecygWaJ_D8Od_rDiFyH60Fz=2AnaLDEeevoB2OY1iWA@mail.gmail.com> <1469741325.1048784.679782009.23593089@webmail.messagingengine.com>
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de MdGGoHF22RWPSy3MpL0WEwPskjawfnjwVIGpmBdlhzEA==
Return-Path <python@bdurham.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'closed.': 0.09; 'descriptor': 0.09; 'open()': 0.09; 'received:internal': 0.09; 'subject:files': 0.09; 'example:': 0.10; '[1].': 0.16; 'from:addr:python': 0.16; 'malcolm': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'subject:server': 0.16; 'subject:when': 0.16; 'creates': 0.18; 'to:2**1': 0.21; 'anonymous': 0.22; 'header:In-Reply-To:1': 0.24; 'linux': 0.26; 'open': 0.33; 'file': 0.34; 'gets': 0.35; "isn't": 0.35; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'thank': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.61; 'back': 0.62; 'subject:, \n ': 0.84
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=bdurham.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=jEF1uxYsilrBzAKZ341oliWZ2aA=; b=k1rt9O hP/y8a57AKqr8mHPxC3uKtz2GKYo+uyD7fFRDudyzuS5Vo8Lpb720GQlBXsplO+s pyPT5M3BFvdBaOQwvziXuq4qYbPTSd1bGLx+3kOlCacxvDlxEogmwMcyrCjMCijI b8J5RuFSO15CLkgZtqsIU06tlxGzIUFzdl2UQ=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=jEF1uxYsilrBzAK Z341oliWZ2aA=; b=GTlxSvlLU1o9m1oV6eyAVDUpMfzucL1kPg25LeChNFIwtMS Ey4S6MfZ7cJyRaPEmNj5doS+UcMTo7+ad04YYPDjSfsWlywW69GogbbznvN84QsZ eKDyMmaMHLii+YGBiBYb/QOtnbXDWZJ1a2RqOag833gBapd3QnJI1DnkUxaQ=
X-Sasl-Enc pxvLZQEzgmPJm6CnMGaPLXCO6QVNSH18KEX/0L48a4UB 1469741325
X-Mailer MessagingEngine.com Webmail Interface - ajax-aabce84e
In-Reply-To <CACL+1asecygWaJ_D8Od_rDiFyH60Fz=2AnaLDEeevoB2OY1iWA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <1469741325.1048784.679782009.23593089@webmail.messagingengine.com>
X-Mailman-Original-References <1469627937.3315162.678210321.47361EB5@webmail.messagingengine.com> <CACL+1asecygWaJ_D8Od_rDiFyH60Fz=2AnaLDEeevoB2OY1iWA@mail.gmail.com>
Xref csiph.com comp.lang.python:111996

Show key headers only | View raw


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>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Behavior of tempfile temp files when scripts killed, interpreter crashes, server crashes? Malcolm Greene <python@bdurham.com> - 2016-07-28 17:28 -0400

csiph-web