X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fcommon%2FPreforker.h;h=f6671a5d302d6ef9125fd6745199385b2d018721;hb=28e407b858acd3bddc89f68583571f771bb42e46;hp=d3bbe48363a7503f0e8215e45a59fa8900e24b8c;hpb=7c673caec407dd16107e56e4b51a6d00f021315c;p=ceph.git diff --git a/ceph/src/common/Preforker.h b/ceph/src/common/Preforker.h index d3bbe4836..f6671a5d3 100644 --- a/ceph/src/common/Preforker.h +++ b/ceph/src/common/Preforker.h @@ -3,15 +3,10 @@ #ifndef CEPH_COMMON_PREFORKER_H #define CEPH_COMMON_PREFORKER_H -#include "acconfig.h" -#include #include #include -#include -#include #include #include -#include #include "include/assert.h" #include "common/safe_io.h" @@ -112,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; }