llvm-project/libc
Paula Toth 17566573b2 [libc] Resolve race condition in sub-process test runner.
Summary:
There seems to be a race condition between the pipe closing and the child process death. Likely these two events are not atomic on some versions of linux.

With the removal of `WNOHANG` we eliminate the race condition, however if the child closes the pipe intentionally then it could result in the test runner hanging. I find this situation less likely, where as I experience failures locally with this race condition rather consistently.

Reviewers: sivachandra, abrachet

Reviewed By: sivachandra, abrachet

Subscribers: MaskRay, jfb, tschuett, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D76267
2020-03-17 13:00:00 -07:00
..
AOR_v20.02 [libc] Add a README.md file to the AOR directory. 2020-03-16 12:29:24 -07:00
cmake/modules [libc] Add a new rule `add_object`. 2020-03-17 12:33:36 -07:00
config [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
docs [libc] Add a README to the sub-directories under the utils directory. 2020-02-23 22:11:35 -08:00
fuzzing [libc] Lay out framework for fuzzing libc functions. 2020-02-21 19:15:46 -08:00
include [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
lib [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
spec [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
src [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
test [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00
utils [libc] Resolve race condition in sub-process test runner. 2020-03-17 13:00:00 -07:00
CMakeLists.txt [libc] Lay out framework for fuzzing libc functions. 2020-02-21 19:15:46 -08:00
LICENSE.txt
README.txt

README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.