]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mon/LogMonitor.cc
update sources to 12.2.10
[ceph.git] / ceph / src / mon / LogMonitor.cc
index 2d692840ea1a14420a085e6caea7c4a09a641632..4987e67da5e78772dd104e243b470d92740e3a95 100644 (file)
@@ -185,7 +185,7 @@ void LogMonitor::update_from_paxos(bool *need_bootstrap)
              << "' logging " << p->second.length() << " bytes" << dendl;
     string log_file = channels.get_log_file(p->first);
 
-    int fd = ::open(log_file.c_str(), O_WRONLY|O_APPEND|O_CREAT, 0600);
+    int fd = ::open(log_file.c_str(), O_WRONLY|O_APPEND|O_CREAT|O_CLOEXEC, 0600);
     if (fd < 0) {
       int err = -errno;
       dout(1) << "unable to write to '" << log_file << "' for channel '"