kern_sig.c (67365) | kern_sig.c (68520) |
---|---|
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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_sig.c 8.7 (Berkeley) 4/18/94 | 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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_sig.c 8.7 (Berkeley) 4/18/94 |
39 * $FreeBSD: head/sys/kern/kern_sig.c 67365 2000-10-20 07:58:15Z jhb $ | 39 * $FreeBSD: head/sys/kern/kern_sig.c 68520 2000-11-09 08:25:48Z marcel $ |
40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/kernel.h> 47#include <sys/sysproto.h> --- 777 unchanged lines hidden (view full) --- 825 return (error); 826 if (ss.ss_flags & SS_DISABLE) { 827 if (p->p_sigstk.ss_flags & SS_ONSTACK) 828 return (EINVAL); 829 p->p_flag &= ~P_ALTSTACK; 830 p->p_sigstk.ss_flags = ss.ss_flags; 831 return (0); 832 } | 40 */ 41 42#include "opt_compat.h" 43#include "opt_ktrace.h" 44 45#include <sys/param.h> 46#include <sys/kernel.h> 47#include <sys/sysproto.h> --- 777 unchanged lines hidden (view full) --- 825 return (error); 826 if (ss.ss_flags & SS_DISABLE) { 827 if (p->p_sigstk.ss_flags & SS_ONSTACK) 828 return (EINVAL); 829 p->p_flag &= ~P_ALTSTACK; 830 p->p_sigstk.ss_flags = ss.ss_flags; 831 return (0); 832 } |
833 if (ss.ss_size < MINSIGSTKSZ) | 833 if (ss.ss_size < p->p_sysent->sv_minsigstksz) |
834 return (ENOMEM); 835 p->p_flag |= P_ALTSTACK; 836 p->p_sigstk = ss; 837 return (0); 838} 839 840/* 841 * Common code for kill process group/broadcast kill. --- 946 unchanged lines hidden --- | 834 return (ENOMEM); 835 p->p_flag |= P_ALTSTACK; 836 p->p_sigstk = ss; 837 return (0); 838} 839 840/* 841 * Common code for kill process group/broadcast kill. --- 946 unchanged lines hidden --- |