]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
ENORMOUS long standing bug affecting the epoll polling system.
authorwilly tarreau <willy@wtap.(none)>
Sun, 19 Mar 2006 18:33:33 +0000 (19:33 +0100)
committerwilly tarreau <willy@wtap.(none)>
Sun, 19 Mar 2006 18:33:33 +0000 (19:33 +0100)
event_data is a union, not a structure !

include/epoll.h

index af9841c03dd41304d017831beff4bd5635d67b16..4b753839cdf46c5e99e65d03e5db70910859b4b9 100644 (file)
@@ -23,7 +23,7 @@
 
 struct epoll_event {
     uint32_t events;
-    struct {
+    union {
        void *ptr;
        int fd;
        uint32_t u32;