]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async: set close on exec on server sockets
authorKefu Chai <kchai@redhat.com>
Thu, 16 Jun 2016 17:17:05 +0000 (01:17 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Jul 2016 04:50:56 +0000 (12:50 +0800)
commiteaf68c724144d07f9506037a14d9192cb9f16d70
tree8a86dbb01dbe8442be9bbfcce32a5ad05225d6fb
parent7eef57c2716d4981400c278dab1dd7a51ac82d02
msg/async: set close on exec on server sockets

mds execv() when handling the "respawn" command, to avoid fd leakage,
and enormous CLOSE_WAIT connections after respawning, we need to set
FD_CLOEXEC flag for the socket fds.

Fixes: http://tracker.ceph.com/issues/16390
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/AsyncMessenger.cc
src/msg/async/net_handler.cc
src/msg/async/net_handler.h