]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/bluestore/PMEMDevice.cc
update sources to 12.2.10
[ceph.git] / ceph / src / os / bluestore / PMEMDevice.cc
index bb8ffc4d2e5b1daa0b0637cdb45666c11a237caa..2d62b54f989f6328bcbb91a049efac224e423fbd 100644 (file)
@@ -62,7 +62,7 @@ int PMEMDevice::open(const string& p)
   int r = 0;
   dout(1) << __func__ << " path " << path << dendl;
 
-  fd = ::open(path.c_str(), O_RDWR);
+  fd = ::open(path.c_str(), O_RDWR | O_CLOEXEC);
   if (fd < 0) {
     r = -errno;
     derr << __func__ << " open got: " << cpp_strerror(r) << dendl;