]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/ceph_osd.cc
update sources to 12.2.10
[ceph.git] / ceph / src / ceph_osd.cc
index b2c8450658542454b7633da90c1dea1e33a1ada0..efab291e6d9d39d34424a7c1a3e9d2d37ae8c65a 100644 (file)
@@ -234,7 +234,7 @@ int main(int argc, const char **argv)
   {
     char fn[PATH_MAX];
     snprintf(fn, sizeof(fn), "%s/type", g_conf->osd_data.c_str());
-    int fd = ::open(fn, O_RDONLY);
+    int fd = ::open(fn, O_RDONLY|O_CLOEXEC);
     if (fd >= 0) {
       bufferlist bl;
       bl.read_fd(fd, 64);