]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/include/denc.h
update sources to 12.2.10
[ceph.git] / ceph / src / include / denc.h
index 823da640860b7ca5f09ea88b3f47708c7670203c..0a81719e630f4bf08980c7b769f7f78dd31f6515 100644 (file)
@@ -92,7 +92,7 @@ struct denc_traits {
     snprintf(fn, sizeof(fn),                                           \
             ENCODE_STRINGIFY(ENCODE_DUMP_PATH) "/%s__%d.%x", #Type,            \
             getpid(), i++);                                            \
-    int fd = ::open(fn, O_WRONLY|O_TRUNC|O_CREAT, 0644);               \
+    int fd = ::open(fn, O_WRONLY|O_TRUNC|O_CREAT|O_CLOEXEC, 0644);             \
     if (fd >= 0) {                                                     \
       size_t len = p.get_pos() - __denc_dump_pre;                      \
       int r = ::write(fd, __denc_dump_pre, len);                       \