diff options
Diffstat (limited to 'make/check_eventfd.cpp')
-rw-r--r-- | make/check_eventfd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/make/check_eventfd.cpp b/make/check_eventfd.cpp index 5fc72ee3b..199cbcd31 100644 --- a/make/check_eventfd.cpp +++ b/make/check_eventfd.cpp @@ -1,6 +1,11 @@ #include <sys/eventfd.h> int main() { - int fd = eventfd(0, EFD_NONBLOCK); + eventfd_t efd_data; + int fd; + + fd = eventfd(0, EFD_NONBLOCK); + eventfd_read(fd, &efd_data); + return (fd < 0); } |