summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/socket_wrapper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 7e10064..51422ea 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -203,7 +203,11 @@ struct socket_info
struct socket_info *prev, *next;
};
-static SWRAP_THREAD struct socket_info *sockets;
+/*
+ * File descriptors are shared between threads so we should share socket
+ * information too.
+ */
+struct socket_info *sockets;
/* Function prototypes */