patch-src_prog_gpm-root_y 805 B

12345678910111213141516171819202122232425
  1. --- gpm-1.20.7.orig/src/prog/gpm-root.y 2012-10-26 23:21:38.000000000 +0200
  2. +++ gpm-1.20.7/src/prog/gpm-root.y 2013-12-22 13:06:09.000000000 +0100
  3. @@ -56,6 +56,9 @@
  4. #define minor(dev) ((dev)&0xff)
  5. #endif
  6. +#ifndef SA_INTERRUPT
  7. +#define SA_INTERRUPT 0
  8. +#endif
  9. #define GPM_NULL_DEV "/dev/null"
  10. @@ -1196,11 +1199,7 @@ int main(int argc, char **argv)
  11. LOG_DAEMON : LOG_USER);
  12. /* reap your zombies */
  13. childaction.sa_handler=reap_children;
  14. -#if defined(__GLIBC__)
  15. - __sigemptyset(&childaction.sa_mask);
  16. -#else /* __GLIBC__ */
  17. - childaction.sa_mask=0;
  18. -#endif /* __GLIBC__ */
  19. + sigemptyset(&childaction.sa_mask);
  20. childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
  21. sigaction(SIGCHLD,&childaction,NULL);