kern_sig.c (11e9b8bad115cf9799076d3add8824862b038563) | kern_sig.c (e76d823b81edf1f8bcbdbe1143d2c0030c8bc299) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 97 unchanged lines hidden (view full) --- 106static void sig_suspend_threads(struct thread *, struct proc *, int); 107static int filt_sigattach(struct knote *kn); 108static void filt_sigdetach(struct knote *kn); 109static int filt_signal(struct knote *kn, long hint); 110static struct thread *sigtd(struct proc *p, int sig, int prop); 111static void sigqueue_start(void); 112 113static uma_zone_t ksiginfo_zone = NULL; | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 97 unchanged lines hidden (view full) --- 106static void sig_suspend_threads(struct thread *, struct proc *, int); 107static int filt_sigattach(struct knote *kn); 108static void filt_sigdetach(struct knote *kn); 109static int filt_signal(struct knote *kn, long hint); 110static struct thread *sigtd(struct proc *p, int sig, int prop); 111static void sigqueue_start(void); 112 113static uma_zone_t ksiginfo_zone = NULL; |
114struct filterops sig_filtops = 115 { 0, filt_sigattach, filt_sigdetach, filt_signal }; | 114struct filterops sig_filtops = { 115 .f_isfd = 0, 116 .f_attach = filt_sigattach, 117 .f_detach = filt_sigdetach, 118 .f_event = filt_signal, 119}; |
116 117int kern_logsigexit = 1; 118SYSCTL_INT(_kern, KERN_LOGSIGEXIT, logsigexit, CTLFLAG_RW, 119 &kern_logsigexit, 0, 120 "Log processes quitting on abnormal signals to syslog(3)"); 121 122static int kern_forcesigexit = 1; 123SYSCTL_INT(_kern, OID_AUTO, forcesigexit, CTLFLAG_RW, --- 3063 unchanged lines hidden --- | 120 121int kern_logsigexit = 1; 122SYSCTL_INT(_kern, KERN_LOGSIGEXIT, logsigexit, CTLFLAG_RW, 123 &kern_logsigexit, 0, 124 "Log processes quitting on abnormal signals to syslog(3)"); 125 126static int kern_forcesigexit = 1; 127SYSCTL_INT(_kern, OID_AUTO, forcesigexit, CTLFLAG_RW, --- 3063 unchanged lines hidden --- |