diff options
author | Giuseppe Scrivano <[email protected]> | 2020-11-18 11:47:46 +0100 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2020-12-04 12:06:16 +0100 |
commit | 23afeaeff3d985b07abf2c76fd12b8c548da8367 (patch) | |
tree | c2a0bd297fc71e30b90d58fe0042ccc3bca1a05c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 582f1fb6b721facf04848d2ca57f34468da1813e (diff) |
selftests: core: add tests for CLOSE_RANGE_CLOEXEC
check that close_range(initial_fd, last_fd, CLOSE_RANGE_CLOEXEC)
correctly sets the close-on-exec bit for the specified file
descriptors.
Open 100 file descriptors and set the close-on-exec flag for a subset
of them first, then set it for every file descriptor above 2. Make
sure RLIMIT_NOFILE doesn't affect the result.
Signed-off-by: Giuseppe Scrivano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions