diff options
| author | Al Viro <[email protected]> | 2024-08-21 23:51:39 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2024-10-09 15:28:06 +0000 |
| commit | b8ea429d7249253ec1fe90dffc648f0668d12385 (patch) | |
| tree | e0b437967a278a2e1c0de1733f74b31412a53439 /net/handshake/request.c | |
| parent | file.c: merge __{set,clear}_close_on_exec() (diff) | |
| download | kernel-b8ea429d7249253ec1fe90dffc648f0668d12385.tar.gz kernel-b8ea429d7249253ec1fe90dffc648f0668d12385.zip | |
make __set_open_fd() set cloexec state as well
->close_on_exec[] state is maintained only for opened descriptors;
as the result, anything that marks a descriptor opened has to
set its cloexec state explicitly.
As the result, all calls of __set_open_fd() are followed by
__set_close_on_exec(); might as well fold it into __set_open_fd()
so that cloexec state is defined as soon as the descriptor is
marked opened.
[braino fix folded]
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/handshake/request.c')
0 files changed, 0 insertions, 0 deletions
