diff options
author | jilles <jilles@FreeBSD.org> | 2012-09-27 22:05:54 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-09-27 22:05:54 +0000 |
commit | f702d078aa3f620abff880ea809f1abe0beef434 (patch) | |
tree | 2f77e2a165f8ad883116008bc8cbad52d25b3599 /sys/fs/tmpfs | |
parent | 9462cb164169ec9d8c369c666eac8bd7e7476de7 (diff) | |
download | FreeBSD-src-f702d078aa3f620abff880ea809f1abe0beef434.zip FreeBSD-src-f702d078aa3f620abff880ea809f1abe0beef434.tar.gz |
libc/fts: Use O_CLOEXEC for internal file descriptors.
Because fts keeps internal file descriptors open across calls, making such
descriptors close-on-exec helps not only multi-threaded applications but
also single-threaded applications.
In particular, this prevents passing a temporary file descriptor for saving
the current directory to processes created via find -exec.
Diffstat (limited to 'sys/fs/tmpfs')
0 files changed, 0 insertions, 0 deletions