提交 6339a962 编写于 作者: X xionglei6

init: fix bug

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 b6d891c0
......@@ -101,7 +101,7 @@ LE_STATUS LE_RemoveSignal(const LoopHandle loopHandle, const SignalHandle signal
}
sigdelset(&task->mask, signal);
task->sigNumber--;
int sfd = signalfd(GetSocketFd(signalHandle), &task->mask, SFD_NONBLOCK);
int sfd = signalfd(GetSocketFd(signalHandle), &task->mask, SFD_NONBLOCK | SFD_CLOEXEC);
LE_CHECK(sfd > 0, return -1, "Failed to create signal fd");
if (task->sigNumber <= 0) {
loop->delEvent(loop, GetSocketFd(signalHandle), Event_Read);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册