Commit 55c8fdaa authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Call the NetworkSocket version of EventHandler::initHandler instead of the file descriptor version

Summary: Do the thing

Reviewed By: yfeldblum

Differential Revision: D13095592

fbshipit-source-id: 372d1e50e7456ab56ac8c56cb8c9a7b316d2976f
parent 12c1c459
......@@ -819,9 +819,9 @@ void NotificationQueue<MessageT>::Consumer::init(
queue_->ensureSignal();
if (queue_->eventfd_ >= 0) {
initHandler(eventBase, queue_->eventfd_);
initHandler(eventBase, folly::NetworkSocket::fromFd(queue_->eventfd_));
} else {
initHandler(eventBase, queue_->pipeFds_[0]);
initHandler(eventBase, folly::NetworkSocket::fromFd(queue_->pipeFds_[0]));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment