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
4 #define minor(dev) ((dev)&0xff)
8 +#define SA_INTERRUPT 0
11 #define GPM_NULL_DEV "/dev/null"
13 @@ -1196,11 +1199,7 @@ int main(int argc, char **argv)
14 LOG_DAEMON : LOG_USER);
15 /* reap your zombies */
16 childaction.sa_handler=reap_children;
17 -#if defined(__GLIBC__)
18 - __sigemptyset(&childaction.sa_mask);
19 -#else /* __GLIBC__ */
20 - childaction.sa_mask=0;
21 -#endif /* __GLIBC__ */
22 + sigemptyset(&childaction.sa_mask);
23 childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */
24 sigaction(SIGCHLD,&childaction,NULL);