Re: epoll_wait returning EFAULT on Linux 3.2.78 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: epoll_wait returning EFAULT on Linux 3.2.78
Date
Msg-id 27038.1464888278@sss.pgh.pa.us
Whole thread Raw
In response to Re: epoll_wait returning EFAULT on Linux 3.2.78  (Andres Freund <andres@anarazel.de>)
Responses Re: epoll_wait returning EFAULT on Linux 3.2.78  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> That makes sense independent of 32 vs. 64 system. Part of the relevant
> struct probably require 8 byte alignment:

>            typedef union epoll_data {
>                void    *ptr;
>                int      fd;
>                uint32_t u32;
>                uint64_t u64;
>            } epoll_data_t;

On a 32-bit machine it's entirely possible that that would only require
32-bit alignment.  But based on what we know so far, using our regular
MAXALIGN macro should be good enough.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: epoll_wait returning EFAULT on Linux 3.2.78
Next
From: Andres Freund
Date:
Subject: Re: epoll_wait returning EFAULT on Linux 3.2.78