summaryrefslogtreecommitdiff
path: root/src/threadengines
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-05-21 19:28:34 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-05-21 19:28:46 -0500
commitd02d6b05a3cb516ccaf69ceef19383513ad52292 (patch)
treef527e285a3e900702cc9a3ea9084a000cfc1d148 /src/threadengines
parent370838c75da4cc56fded4ccaf6a81c7ede85aee4 (diff)
Use EFD_NONBLOCK in test creation of eventfd (makes it require glibc 2.8/linux 2.6.27)
Diffstat (limited to 'src/threadengines')
-rw-r--r--src/threadengines/threadengine_pthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp
index 4054766de..f2640b5ae 100644
--- a/src/threadengines/threadengine_pthread.cpp
+++ b/src/threadengines/threadengine_pthread.cpp
@@ -90,7 +90,7 @@ class ThreadSignalSocket : public BufferedSocket
SocketThread::SocketThread()
{
- int fd = eventfd(0, O_NONBLOCK);
+ int fd = eventfd(0, EFD_NONBLOCK);
if (fd < 0)
throw new CoreException("Could not create pipe " + std::string(strerror(errno)));
signal.sock = new ThreadSignalSocket(this, fd);