epoll_wait call is wrong if generic_linux_syscalls is defined
Original Reporter info from Mantis: Bi0T1N @Bi0T1N
-
Reporter name: Bi0T1N
Original Reporter info from Mantis: Bi0T1N @Bi0T1N
- Reporter name: Bi0T1N
Description:
Just noticed that the call for epoll_wait which uses epoll_pwait is wrong:
epoll_wait := do_syscall(syscall_nr_epoll_pwait, tsysparam(epfd), tsysparam(events), tsysparam(maxevents), tsysparam(timeout),0,sizeof(TSigSet));
The definition is
int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask);
https://linux.die.net/man/2/epoll_pwait
so it should be changed to
epoll_wait := do_syscall(syscall_nr_epoll_pwait, tsysparam(epfd), tsysparam(events), tsysparam(maxevents), tsysparam(timeout), 0);
Mantis conversion info:
- Mantis ID: 36895
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 45208 (#2840e5e1)