> Date: Wed, 24 Apr 2013 05:56:49 +0300
> From: Eli Zaretskii <[email protected]>
> Cc: [email protected], [email protected]
> 
> 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
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to