summaryrefslogtreecommitdiff
path: root/src/fd_signaler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fd_signaler.cpp')
-rw-r--r--src/fd_signaler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fd_signaler.cpp b/src/fd_signaler.cpp
index 9ab307e..f1ec6af 100644
--- a/src/fd_signaler.cpp
+++ b/src/fd_signaler.cpp
@@ -249,10 +249,10 @@ void zmq::fd_signaler_t::signal (int signal_)
uint64_t zmq::fd_signaler_t::poll ()
{
// Set the reader to blocking mode.
- int flags = fcntl (fd, F_GETFL, 0);
+ int flags = fcntl (r, F_GETFL, 0);
if (flags == -1)
flags = 0;
- int rc = fcntl (fd, F_SETFL, flags & ~O_NONBLOCK);
+ int rc = fcntl (r, F_SETFL, flags & ~O_NONBLOCK);
errno_assert (rc != -1);
// Poll for events.