[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63157] Unlink temporary files.

From: Dmitry Goncharov
Subject: [bug #63157] Unlink temporary files.
Date: Wed, 5 Oct 2022 10:06:54 -0400 (EDT)

Follow-up Comment #5, bug #63157 (project make):

> This should be tested on MS-Windows.  A file can only be deleted on
MS-Windows if it isn't open by any program, and the patch (AFAICT) doesn't
make sure the files are closed before unlinking them.  I'm especially worried
about the temp_stdin_unlink part.

If the file is opened at the time of unlink, only file's name is removed from
the directory and the file itself stays. When make exits the last reference to
the file is gone and the file is deleted.

> (Btw, why does the patch use `unlink` instead of a more standard `remove`?)

unlink is used, rather than remove, to stay uniform with the rest of the code,
which uses unlink.


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]