Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161526710
D26289.id76519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26289.id76519.diff
View Options
Index: sbin/init/init.c
===================================================================
--- sbin/init/init.c
+++ sbin/init/init.c
@@ -106,7 +106,6 @@
static void warning(const char *, ...) __printflike(1, 2);
static void emergency(const char *, ...) __printflike(1, 2);
static void disaster(int);
-static void badsys(int);
static void revoke_ttys(void);
static int runshutdown(void);
static char *strk(char *);
@@ -307,9 +306,8 @@
* We catch or block signals rather than ignore them,
* so that they get reset on exec.
*/
- handle(badsys, SIGSYS, 0);
- handle(disaster, SIGABRT, SIGFPE, SIGILL, SIGSEGV, SIGBUS, SIGXCPU,
- SIGXFSZ, 0);
+ handle(disaster, SIGABRT, SIGFPE, SIGILL, SIGSEGV, SIGBUS, SIGSYS,
+ SIGXCPU, SIGXFSZ, 0);
handle(transition_handler, SIGHUP, SIGINT, SIGEMT, SIGTERM, SIGTSTP,
SIGUSR1, SIGUSR2, SIGWINCH, 0);
handle(alrm_handler, SIGALRM, 0);
@@ -506,22 +504,6 @@
va_end(ap);
}
-/*
- * Catch a SIGSYS signal.
- *
- * These may arise if a system does not support sysctl.
- * We tolerate up to 25 of these, then throw in the towel.
- */
-static void
-badsys(int sig)
-{
- static int badcount = 0;
-
- if (badcount++ < 25)
- return;
- disaster(sig);
-}
-
/*
* Catch an unexpected signal.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 5, 1:42 PM (1 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34711877
Default Alt Text
D26289.id76519.diff (1 KB)
Attached To
Mode
D26289: Remove risky compatability with old kernels.
Attached
Detach File
Event Timeline
Log In to Comment