> Date: Wed, 24 Apr 2013 05:56:49 +0300
> From: Eli Zaretskii <e...@gnu.org>
> Cc: f.heckenb...@fh-soft.de, bug-make@gnu.org
> 
> I will see if locking works on console handles; if not, I will have
> to introduce a command-line argument for passing the name or the
> handle of a mutex to a sub-Make.

As I suspected, neither LockFileEx nor LockFile work on console
handles, they all fail with ERROR_INVALID_HANDLE.  The functions do
work on regular files, but since (as it turns out) file locks on
Windows are mandatory, not advisory as on Posix platforms, they are
not really suitable for this job anyway.

So file locking is out, mutex is in.

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

Reply via email to