[PATCH] top.c: SA_INTERRUPT
Rich Felker
dalias at aerifal.cx
Sun May 21 00:44:03 UTC 2006
SA_INTERRUPT is nonstandard and part of a legacy interface for systems
where it was non-default with sigaction. linux/glibc documents it as a
historical no-op. it could probably be removed (and save a few bytes)
but for safety i left it in #ifdef.
rich
-------------- next part --------------
Index: procps/top.c
===================================================================
--- procps/top.c (revision 15108)
+++ procps/top.c (working copy)
@@ -426,7 +427,9 @@
signal(SIGTERM, sig_catcher);
sigaction(SIGTERM, (struct sigaction *) 0, &sa);
sa.sa_flags |= SA_RESTART;
+#ifdef SA_INTERRUPT
sa.sa_flags &= ~SA_INTERRUPT;
+#endif
sigaction(SIGTERM, &sa, (struct sigaction *) 0);
sigaction(SIGINT, &sa, (struct sigaction *) 0);
tcsetattr(0, TCSANOW, (void *) &new_settings);
More information about the busybox
mailing list