Jon Turney via Cygwin-apps writes:
> The problem is we have a process which goes something like:
>
> - check if F has an existing debuglink section, if so stop
> - otherwise, extract symbols from F to F.dbg
> - strip symbols from F
> - add a debuglink section to F pointing to F.dbg
>
> ... which is run in parallel for F=(A, B, C) (which are all hardlinks
> for the same file).
>
> So we end up with {A,B,C}.dbg, which are all the same, and only one of
> them is actually used.
>
> Except sometimes one of the processes loses the race, so doesn't do
> anything because the debuglink already exists.
>
> (which results in a non-deterministic set of files in the output
> package archive, which makes the test I've added fail...)

So something like wrapping the whole sequence in

(
  unset __fd
  {__fd}<${exe}
  flock ${__fd} # maybe we'd want '-w ${timeout}' here
  # …whatever…
)

should fix it?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

Reply via email to