summaryrefslogtreecommitdiffstats
path: root/src/astmanproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/astmanproxy.c')
-rw-r--r--src/astmanproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/astmanproxy.c b/src/astmanproxy.c
index bb3d260..0a3a172 100644
--- a/src/astmanproxy.c
+++ b/src/astmanproxy.c
@@ -544,7 +544,7 @@ static void *accept_thread()
/* For safety, make sure socket is non-blocking */
flags = fcntl(as, F_GETFL);
- fcntl(as, F_SETFL, flags | O_NONBLOCK);
+ fcntl(get_real_fd(as), F_SETFL, flags | O_NONBLOCK);
pthread_mutex_init(&s->lock, NULL);
s->fd = as;