]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/simple: set close on exec on server sockets 9772/head
authorKefu Chai <kchai@redhat.com>
Fri, 17 Jun 2016 05:58:55 +0000 (13:58 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Jul 2016 04:50:56 +0000 (12:50 +0800)
commitf019ad563ce90f5aea0d8dd8b7b98688441596e0
tree925bb6db87a82e5bfca39391107945b88db4d927
parenteaf68c724144d07f9506037a14d9192cb9f16d70
msg/simple: 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/simple/Accepter.cc