Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern sigispending: simplify a little.
details: https://anonhg.NetBSD.org/src/rev/d647c5661a79
branches: trunk
changeset: 769128:d647c5661a79
user: rmind <rmind%NetBSD.org@localhost>
date: Wed Aug 31 22:43:19 2011 +0000
description:
sigispending: simplify a little.
diffstat:
sys/kern/kern_sig.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (34 lines):
diff -r 54369aeb5d16 -r d647c5661a79 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c Wed Aug 31 22:36:36 2011 +0000
+++ b/sys/kern/kern_sig.c Wed Aug 31 22:43:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.311 2011/08/31 16:05:44 christos Exp $ */
+/* $NetBSD: kern_sig.c,v 1.312 2011/08/31 22:43:19 rmind Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.311 2011/08/31 16:05:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.312 2011/08/31 22:43:19 rmind Exp $");
#include "opt_ptrace.h"
#include "opt_compat_sunos.h"
@@ -707,12 +707,9 @@
sigminusset(&l->l_sigmask, &tset);
if (signo == 0) {
- if ((signo = firstsig(&tset)) != 0)
- return signo;
- } else if (sigismember(&tset, signo))
- return signo;
-
- return 0;
+ return firstsig(&tset);
+ }
+ return sigismember(&tset, signo) ? signo : 0;
}
#ifdef KERN_SA
Home |
Main Index |
Thread Index |
Old Index