tools/gn: fix race condition regression

ExecProcess was converted to use C++11 range-based for loops in
crrev.com/986113002, but in debug builds, std::vector<...>::iterator
allocates memory to track invalid uses.  However, because we're in a
fork() child process context, we can't allocate memory.

Using the STL at all past fork() is technically unsafe, but our
current usage at least works today.

Review URL: https://codereview.chromium.org/1049123002

Cr-Original-Commit-Position: refs/heads/master@{#322952}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3a17623a0a83b9b395d15971be2e239350f38266
1 file changed
tree: d0d544a79ec0b693476cd1af36533c57e73924e8
  1. tools/