svn commit: r234072 - head/sys/kern
Jilles Tjoelker
jilles at FreeBSD.org
Mon Apr 9 21:58:59 UTC 2012
Author: jilles
Date: Mon Apr 9 21:58:58 2012
New Revision: 234072
URL: http://svn.freebsd.org/changeset/base/234072
Log:
Remove unused and wrong SA_PROC internal signal property.
The SA_PROC signal property indicated whether each signal number is directed
at a specific thread or at the process in general. However, that depends on
how the signal was generated and not on the signal number. SA_PROC was not
used.
Modified:
head/sys/kern/kern_sig.c
Modified: head/sys/kern/kern_sig.c
==============================================================================
--- head/sys/kern/kern_sig.c Mon Apr 9 21:29:58 2012 (r234071)
+++ head/sys/kern/kern_sig.c Mon Apr 9 21:58:58 2012 (r234072)
@@ -194,40 +194,39 @@ SYSCTL_INT(_kern, OID_AUTO, nodump_cored
#define SA_IGNORE 0x10 /* ignore by default */
#define SA_CONT 0x20 /* continue if suspended */
#define SA_CANTMASK 0x40 /* non-maskable, catchable */
-#define SA_PROC 0x80 /* deliverable to any thread */
static int sigproptbl[NSIG] = {
- SA_KILL|SA_PROC, /* SIGHUP */
- SA_KILL|SA_PROC, /* SIGINT */
- SA_KILL|SA_CORE|SA_PROC, /* SIGQUIT */
+ SA_KILL, /* SIGHUP */
+ SA_KILL, /* SIGINT */
+ SA_KILL|SA_CORE, /* SIGQUIT */
SA_KILL|SA_CORE, /* SIGILL */
SA_KILL|SA_CORE, /* SIGTRAP */
SA_KILL|SA_CORE, /* SIGABRT */
- SA_KILL|SA_CORE|SA_PROC, /* SIGEMT */
+ SA_KILL|SA_CORE, /* SIGEMT */
SA_KILL|SA_CORE, /* SIGFPE */
- SA_KILL|SA_PROC, /* SIGKILL */
+ SA_KILL, /* SIGKILL */
SA_KILL|SA_CORE, /* SIGBUS */
SA_KILL|SA_CORE, /* SIGSEGV */
SA_KILL|SA_CORE, /* SIGSYS */
- SA_KILL|SA_PROC, /* SIGPIPE */
- SA_KILL|SA_PROC, /* SIGALRM */
- SA_KILL|SA_PROC, /* SIGTERM */
- SA_IGNORE|SA_PROC, /* SIGURG */
- SA_STOP|SA_PROC, /* SIGSTOP */
- SA_STOP|SA_TTYSTOP|SA_PROC, /* SIGTSTP */
- SA_IGNORE|SA_CONT|SA_PROC, /* SIGCONT */
- SA_IGNORE|SA_PROC, /* SIGCHLD */
- SA_STOP|SA_TTYSTOP|SA_PROC, /* SIGTTIN */
- SA_STOP|SA_TTYSTOP|SA_PROC, /* SIGTTOU */
- SA_IGNORE|SA_PROC, /* SIGIO */
+ SA_KILL, /* SIGPIPE */
+ SA_KILL, /* SIGALRM */
+ SA_KILL, /* SIGTERM */
+ SA_IGNORE, /* SIGURG */
+ SA_STOP, /* SIGSTOP */
+ SA_STOP|SA_TTYSTOP, /* SIGTSTP */
+ SA_IGNORE|SA_CONT, /* SIGCONT */
+ SA_IGNORE, /* SIGCHLD */
+ SA_STOP|SA_TTYSTOP, /* SIGTTIN */
+ SA_STOP|SA_TTYSTOP, /* SIGTTOU */
+ SA_IGNORE, /* SIGIO */
SA_KILL, /* SIGXCPU */
SA_KILL, /* SIGXFSZ */
- SA_KILL|SA_PROC, /* SIGVTALRM */
- SA_KILL|SA_PROC, /* SIGPROF */
- SA_IGNORE|SA_PROC, /* SIGWINCH */
- SA_IGNORE|SA_PROC, /* SIGINFO */
- SA_KILL|SA_PROC, /* SIGUSR1 */
- SA_KILL|SA_PROC, /* SIGUSR2 */
+ SA_KILL, /* SIGVTALRM */
+ SA_KILL, /* SIGPROF */
+ SA_IGNORE, /* SIGWINCH */
+ SA_IGNORE, /* SIGINFO */
+ SA_KILL, /* SIGUSR1 */
+ SA_KILL, /* SIGUSR2 */
};
static void reschedule_signals(struct proc *p, sigset_t block, int flags);
More information about the svn-src-head
mailing list