Commit 17eae74c authored by Max Kellermann's avatar Max Kellermann

system/EventFD: Get() returns FileDescriptor

parent cd4b673b
......@@ -38,7 +38,11 @@ class WakeFD {
public:
SocketDescriptor GetSocket() const noexcept {
#ifdef USE_EVENTFD
return SocketDescriptor::FromFileDescriptor(fd.Get());
#else
return SocketDescriptor(fd.Get());
#endif
}
bool Read() noexcept {
......
......@@ -44,8 +44,8 @@ public:
*/
EventFD();
int Get() const noexcept {
return fd.Get();
FileDescriptor Get() const noexcept {
return fd;
}
/**
......
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