Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Fix rump build which got broken by...



details:   https://anonhg.NetBSD.org/src/rev/3fdadf54d4fc
branches:  trunk
changeset: 765498:3fdadf54d4fc
user:      tron <tron%NetBSD.org@localhost>
date:      Sat May 28 16:07:43 2011 +0000

description:
Fix rump build which got broken by the fix for PR kern/44986.

diffstat:

 sys/rump/librump/rumpkern/signals.c |  20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 6694a6e4b31f -r 3fdadf54d4fc sys/rump/librump/rumpkern/signals.c
--- a/sys/rump/librump/rumpkern/signals.c       Sat May 28 15:47:17 2011 +0000
+++ b/sys/rump/librump/rumpkern/signals.c       Sat May 28 16:07:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signals.c,v 1.9 2011/05/18 15:57:14 christos Exp $     */
+/*     $NetBSD: signals.c,v 1.10 2011/05/28 16:07:43 tron Exp $        */
 
 /*-
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: signals.c,v 1.9 2011/05/18 15:57:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: signals.c,v 1.10 2011/05/28 16:07:43 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -280,7 +280,7 @@
 void
 sigsuspendsetup(struct lwp *l, const sigset_t *ss)
 {
-       /* XXX: Partial copy of kernel code, remove and use the kernel code */
+       /* XXX: Partial copy of kernel code, remove and use the kernel code. */
        struct proc *p = l->l_proc;
 
        mutex_enter(p->p_lock);
@@ -290,3 +290,17 @@
        sigminusset(&sigcantmask, &l->l_sigmask);
        mutex_exit(p->p_lock);
 }
+
+void
+sigsuspendteardown(struct lwp *l)
+{
+       /* XXX: Copy of kernel code, remove and use the kernel code. */
+       struct proc *p = l->l_proc;
+
+       mutex_enter(p->p_lock);
+       if (l->l_sigrestore) {
+               l->l_sigrestore = 0;
+               l->l_sigmask = l->l_sigoldmask;
+       }
+       mutex_exit(p->p_lock);
+}



Home | Main Index | Thread Index | Old Index