From: Michael Haggerty Date: Mon, 10 Aug 2015 09:47:44 +0000 (+0200) Subject: register_tempfile(): new function to handle an existing temporary file X-Git-Tag: v2.6.0-rc0~46^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/99397152a345011c99497b93f8518c7981e811a5?ds=inline;hp=99397152a345011c99497b93f8518c7981e811a5 register_tempfile(): new function to handle an existing temporary file Allow an existing file to be registered with the tempfile-handling infrastructure; in particular, arrange for it to be deleted on program exit. This can be used if the temporary file has to be created in a more complicated way than just open(). For example: * If the file itself needs to be created via the lockfile API * If it is not a regular file (e.g., a socket) Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---