diff options
| author | Julian Lettner <jlettner@apple.com> | 2019-08-27 22:12:26 +0000 |
|---|---|---|
| committer | Julian Lettner <jlettner@apple.com> | 2019-08-27 22:12:26 +0000 |
| commit | d3136661bac0509328231005957fb27adc8ce717 (patch) | |
| tree | ddf469d538df50acc45d69561933596418c4575c /clang/lib/Frontend | |
| parent | 50c094a3685ecc7da40cb9d1f362585a1dc6a768 (diff) | |
| download | bcm5719-llvm-d3136661bac0509328231005957fb27adc8ce717.tar.gz bcm5719-llvm-d3136661bac0509328231005957fb27adc8ce717.zip | |
[sanitizer_common] Close superfluous file descriptors in spawned process
Use attribute flag `POSIX_SPAWN_CLOEXEC_DEFAULT` in the call to
`posix_spawn`.
If this flag is set, then only file descriptors explicitly described by
the file_actions argument are available in the spawned process; all of
the other file descriptors are automatically closed in the spawned
process.
POSIX_SPAWN_CLOEXEC_DEFAULT is an Apple-specific extension.
llvm-svn: 370121
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions

