From: Nuno Antunes Date: Thu, 24 Jan 2008 22:35:14 +0000 (+0000) Subject: In __cursignb, always return FALSE if there is no signal pending for the X-Git-Tag: v2.0.1~1276 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/6b01e243cf812ffc89c79cb1a631c78df7822dc4 In __cursignb, always return FALSE if there is no signal pending for the lwp, regardless if the lwp is being traced or not. Dragonfly-bug: 926 Submitted-by: corecode@ Approved-by: dillon@ --- diff --git a/sys/sys/signal2.h b/sys/sys/signal2.h index fafc100069..c691767ecb 100644 --- a/sys/sys/signal2.h +++ b/sys/sys/signal2.h @@ -32,7 +32,7 @@ * * @(#)signalvar.h 8.6 (Berkeley) 2/19/95 * $FreeBSD: src/sys/sys/signalvar.h,v 1.34.2.1 2000/05/16 06:58:05 dillon Exp $ - * $DragonFly: src/sys/sys/signal2.h,v 1.1 2007/02/25 23:17:13 corecode Exp $ + * $DragonFly: src/sys/sys/signal2.h,v 1.2 2008/01/24 22:35:14 nant Exp $ */ #ifndef _SYS_SIGNAL2_H @@ -103,9 +103,8 @@ __cursignb(struct lwp *lp) p = lp->lwp_proc; tmpset = lwp_sigpend(lp); SIGSETNAND(tmpset, lp->lwp_sigmask); - if ((!(p->p_flag & P_TRACED) && SIGISEMPTY(tmpset))) { + if (SIGISEMPTY(tmpset)) return(FALSE); - } return (TRUE); }