Eli Zaretskii wrote:

> Initial investigation indicates that tmpfile should do the job just
> fine: the file is deleted only when the last descriptor for it is
> closed.  That includes any duplicated descriptors.

Great.

> As for fcntl, F_SETLKW, and F_GETFD, they will need to be emulated.
> In particular, it looks like LockFileEx with LOCKFILE_EXCLUSIVE_LOCK
> flag set and LOCKFILE_FAIL_IMMEDIATELY flag cleared should do the
> job.  I will need to see how it works in reality, though.

OK.

> Is there a simple enough Makefile somewhere that could be used to test
> this feature, once implemented?

We have a test in the test suite (output-sync). Can you use that?

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to