epoll.patch 991 B

12345678910111213141516171819
  1. diff -Nur uClibc-0.9.32.orig/libc/sysdeps/linux/common/epoll.c uClibc-0.9.32/libc/sysdeps/linux/common/epoll.c
  2. --- uClibc-0.9.32.orig/libc/sysdeps/linux/common/epoll.c 2011-06-08 21:35:20.000000000 +0200
  3. +++ uClibc-0.9.32/libc/sysdeps/linux/common/epoll.c 2011-06-15 14:18:06.798202250 +0200
  4. @@ -67,12 +67,13 @@
  5. int __libc_epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
  6. int timeout, const sigset_t *set)
  7. {
  8. + int nsig = _NSIG / 8;
  9. if (SINGLE_THREAD_P)
  10. - return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
  11. + return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
  12. # ifdef __UCLIBC_HAS_THREADS_NATIVE__
  13. else {
  14. int oldtype = LIBC_CANCEL_ASYNC ();
  15. - int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
  16. + int result = INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);
  17. LIBC_CANCEL_RESET (oldtype);
  18. return result;
  19. }