]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/Preforker.h
update sources to 12.2.7
[ceph.git] / ceph / src / common / Preforker.h
index 9fe34e5ea0eb8fb39721cff507d51462475d85b2..f6671a5d302d6ef9125fd6745199385b2d018721 100644 (file)
@@ -107,11 +107,8 @@ public:
 
   int signal_exit(int r) {
     if (forked) {
-      // tell parent.  this shouldn't fail, but if it does, pass the
-      // error back to the parent.
-      int ret = safe_write(fd[1], &r, sizeof(r));
-      if (ret <= 0)
-       return ret;
+      /* If we get an error here, it's too late to do anything reasonable about it. */
+      (void)safe_write(fd[1], &r, sizeof(r));
     }
     return r;
   }