mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-09 15:27:06 +02:00
* gpm.h is in src/headers/; some but not all rules allowed for this. * FD_ZERO, FD_SET, and fd_set are defined in <sys/select.h> * gpm-root had a number of bad assumptions about non-glibc systems.
27 lines
903 B
Diff
27 lines
903 B
Diff
commit eb333988d937f3665348240c5551db3ec98fc679
|
|
Author: Isaac Dunham <ibid.ag@gmail.com>
|
|
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 */
|