[PATCH] D82282: [Support][AIX] Add declaration of wait4 to fix build
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 22:01:26 PDT 2020
hubert.reinterpretcast marked an inline comment as done.
hubert.reinterpretcast added inline comments.
================
Comment at: llvm/lib/Support/Unix/Program.inc:370
WaitResult.Pid = wait4(ChildPid, &status, WaitPidOptions, &Info);
} while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
----------------
hubert.reinterpretcast wrote:
> Got a build, but it hangs. Will need to check this loop.
> ```
> [ RUN ] ProgramEnvTest.TestExecuteNoWait
> Note: Google Test filter = ProgramEnvTest.TestExecuteNoWait
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from ProgramEnvTest
> [ RUN ] ProgramEnvTest.TestExecuteNoWait
> Note: Google Test filter = ProgramEnvTest.TestExecuteNoWait
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from ProgramEnvTest
> [ RUN ] ProgramEnvTest.TestExecuteNoWait
> ```
AIX `wait4` does not seem to work with `WNOHANG`. Attempting workaround...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82282/new/
https://reviews.llvm.org/D82282
More information about the llvm-commits
mailing list