summaryrefslogtreecommitdiffstats
path: root/test/unit/log.c
diff options
context:
space:
mode:
authorY. T. Chung <zonyitoo@gmail.com>2017-07-20 15:02:23 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-07-20 21:13:33 (GMT)
commit0975b88dfd3a890f469c8c282a5140013af85ab2 (patch)
tree147ac0ea173848299cba7ed803961726f400263e /test/unit/log.c
parentfb6787a78c3a1e3a4868520d0531fc2ebdda21d8 (diff)
downloadjemalloc-0975b88dfd3a890f469c8c282a5140013af85ab2.zip
jemalloc-0975b88dfd3a890f469c8c282a5140013af85ab2.tar.gz
jemalloc-0975b88dfd3a890f469c8c282a5140013af85ab2.tar.bz2
Fall back to FD_CLOEXEC when O_CLOEXEC is unavailable.
Older Linux systems don't have O_CLOEXEC. If that's the case, we fcntl immediately after open, to minimize the length of the racy period in which an operation in another thread can leak a file descriptor to a child.
Diffstat (limited to 'test/unit/log.c')
0 files changed, 0 insertions, 0 deletions