[all-commits] [llvm/llvm-project] d2dad6: Add wait for child processe(s) to exit. (amended+c...

Roy Sundahl via All-commits all-commits at lists.llvm.org
Mon Jun 27 13:14:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2dad6287cb33d4e2ed226b2bd2e5f9097180200
      https://github.com/llvm/llvm-project/commit/d2dad6287cb33d4e2ed226b2bd2e5f9097180200
  Author: Roy Sundahl <rsundahl at apple.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M compiler-rt/test/asan/TestCases/Posix/coverage-fork.cpp

  Log Message:
  -----------
  Add wait for child processe(s) to exit. (amended+clang-formatted)

It was possible for the parent process to exit before the
forked child process had finished. In some shells, this
causes the pipe to close and FileCheck misses some output
from the child. Waiting for the child process to exit before
exiting the parent, assures that all output from stdout and
stderr is combined and forwarded through the pipe to FileCheck.

rdar://95241490

Differential Revision: https://reviews.llvm.org/D128565




More information about the All-commits mailing list