On Tue, 11 Jun 2002, Muli Ben-Yehuda wrote: > Is there a way to open a file (get an fd) and then delete it, in one > atomic operation? > > I need to open a temporary file (but with a fixed name, so mkstemp() > and friends are not an option)
Why a fixed name? Can it be a symlink? > and then make sure it doesn't remain > behind if the program should die unexpectedly. -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]