aboutsummaryrefslogtreecommitdiffstats
path: root/src/threadengines/threadengine_pthread.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-05-21 19:28:34 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:43 -0400
commit3ba8597b787d432be4088a87664f66bbe90b90af (patch)
tree1070ab3bd5bbe2e3b2e930784c181bd67f8d7f12 /src/threadengines/threadengine_pthread.cpp
parentAdd print-vars to show the overridable settings in the Makefile (diff)
Use EFD_NONBLOCK in test creation of eventfd (makes it require glibc 2.8/linux 2.6.27)
Diffstat (limited to 'src/threadengines/threadengine_pthread.cpp')
-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);