]> git.ipfire.org Git - thirdparty/lxc.git/commit
tree-wide: convert fcntl(FD_CLOEXEC) to SOCK_CLOEXEC 4290/head
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Fri, 17 Mar 2023 12:43:34 +0000 (13:43 +0100)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Fri, 17 Mar 2023 12:43:34 +0000 (13:43 +0100)
commit3c1453a38d07b8c92b1a7e6b204b454224c1c924
tree4a3935011196c9cf4ec9e0b0c44136253740eb86
parent838221c11152d57c456a9d9440d0776a6849ba5c
tree-wide: convert fcntl(FD_CLOEXEC) to SOCK_CLOEXEC

- replace accept() + fcntl(FD_CLOEXEC) with accept4(..., SOCK_CLOEXEC)
- remove fcntl(FD_CLOEXEC) in lxc_server_init() as we already set
SOCK_CLOEXEC in lxc_abstract_unix_open().

See also: ad9429e52 ("tree-wide: make socket SOCK_CLOEXEC")
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/cmd/lxc_monitord.c
src/lxc/commands.c