commit eb333988d937f3665348240c5551db3ec98fc679 Author: Isaac Dunham Date: Tue Jul 15 18:18:26 2014 -0700 make gpm-root build diff --git a/src/prog/gpm-root.y b/src/prog/gpm-root.y index 069d801..3ad0d03 100644 --- a/src/prog/gpm-root.y +++ b/src/prog/gpm-root.y @@ -1196,12 +1196,10 @@ int main(int argc, char **argv) LOG_DAEMON : LOG_USER); /* reap your zombies */ childaction.sa_handler=reap_children; -#if defined(__GLIBC__) - __sigemptyset(&childaction.sa_mask); -#else /* __GLIBC__ */ - childaction.sa_mask=0; -#endif /* __GLIBC__ */ + sigemptyset(&childaction.sa_mask); +#ifdef SA_INTERRUPT childaction.sa_flags=SA_INTERRUPT; /* need to break the select() call */ +#endif sigaction(SIGCHLD,&childaction,NULL); /*....................................... Connect and get your buffer */