merge: fix to use per-proc filenames rather than hardcoding them
authorJon Trulson <jon@radscan.com>
Tue, 24 Mar 2020 23:51:24 +0000 (17:51 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 25 Mar 2020 00:43:11 +0000 (18:43 -0600)
commit3d217c6ed1dc213a6a81764ec863da167f3879de
tree3dbd4da8f2ac4769df7d76949605fb2feee6ba27
parentf5c3c5d7a22454ee3b9b03ddd0dadefc955dfa35
merge: fix to use per-proc filenames rather than hardcoding them

The localized/utils/merge utility used hardcoded temporary filenames
to do its thing.  This prevented any Makefiles that called merge from
enabling parallel builds in order avoid the file collisions that would
result.

Now we:

- use filenames that embed the PID in them, making them unique
  per-process
- place them in /tmp, rather than the current directory

As a result, we can now re-enable parallel builds for localized
app-defaults, config, and types.
cde/programs/localized/util/merge.c