This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: epoll_pwait broken?


On 1/21/07, Davin McCall <davmac@davmac.org> wrote:
As a result epoll_pwait is currently broken - the sigset size value passed to the kernel will be some random value from the stack. Am I correct or am I missing something?

The interface is not broken. The header is missing the 6th argument. If your code passes a 6th argument "size_t sigsetsize" then everything works.

The 6th argument to the syscall is required and should match
sizeof(sigset_t) or the syscall will return -EINVAL.

FWIW I think a patch to "sysdeps/unix/sysv/linux/sys/epoll.h" adding
the 6th argument is the right thing to do.

c.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]