kern_sig.c (7ab97117a085318550462913c6fa0a1da8a8a421) | kern_sig.c (2dd9ea6f702c2e5791dc34794f285426d6bfb1ca) |
---|---|
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. --- 1451 unchanged lines hidden (view full) --- 1460 /* void */; 1461 thread_suspend_check(0); 1462 mtx_lock(&p->p_sigacts->ps_mtx); 1463 while ((sig = cursig(td, SIG_STOP_ALLOWED)) != 0) 1464 has_sig += postsig(sig); 1465 mtx_unlock(&p->p_sigacts->ps_mtx); 1466 } 1467 PROC_UNLOCK(p); | 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. --- 1451 unchanged lines hidden (view full) --- 1460 /* void */; 1461 thread_suspend_check(0); 1462 mtx_lock(&p->p_sigacts->ps_mtx); 1463 while ((sig = cursig(td, SIG_STOP_ALLOWED)) != 0) 1464 has_sig += postsig(sig); 1465 mtx_unlock(&p->p_sigacts->ps_mtx); 1466 } 1467 PROC_UNLOCK(p); |
1468 td->td_errno = EINTR; 1469 td->td_pflags |= TDP_NERRNO; |
|
1468 return (EJUSTRETURN); 1469} 1470 1471#ifdef COMPAT_43 /* XXX - COMPAT_FBSD3 */ 1472/* 1473 * Compatibility sigsuspend call for old binaries. Note nonstandard calling 1474 * convention: libc stub passes mask, not pointer, to save a copyin. 1475 */ --- 1980 unchanged lines hidden --- | 1470 return (EJUSTRETURN); 1471} 1472 1473#ifdef COMPAT_43 /* XXX - COMPAT_FBSD3 */ 1474/* 1475 * Compatibility sigsuspend call for old binaries. Note nonstandard calling 1476 * convention: libc stub passes mask, not pointer, to save a copyin. 1477 */ --- 1980 unchanged lines hidden --- |