mirror of
https://github.com/ceph/ceph
synced 2025-01-02 17:12:31 +00:00
rgw: remove unused disable_signal_fd
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
This commit is contained in:
parent
8ccaa64bf1
commit
1b4d29dff9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user