rgw: remove unused disable_signal_fd

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
This commit is contained in:
Yao Zongyou 2017-11-10 18:00:22 +08:00
parent 8ccaa64bf1
commit 1b4d29dff9

View File

@ -79,17 +79,14 @@ static sig_t sighandler_alrm;
class RGWProcess;
static int signal_fd[2] = {0, 0};
static std::atomic<int64_t> disable_signal_fd = { 0 };
void signal_shutdown()
{
if (!disable_signal_fd) {
int val = 0;
int ret = write(signal_fd[0], (char *)&val, sizeof(val));
if (ret < 0) {
derr << "ERROR: " << __func__ << ": write() returned "
<< cpp_strerror(errno) << dendl;
}
int val = 0;
int ret = write(signal_fd[0], (char *)&val, sizeof(val));
if (ret < 0) {
derr << "ERROR: " << __func__ << ": write() returned "
<< cpp_strerror(errno) << dendl;
}
}