Module Name:    src
Committed By:   tron
Date:           Sat May 28 16:07:44 UTC 2011

Modified Files:
        src/sys/rump/librump/rumpkern: signals.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpkern/signals.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/signals.c
diff -u src/sys/rump/librump/rumpkern/signals.c:1.9 src/sys/rump/librump/rumpkern/signals.c:1.10
--- src/sys/rump/librump/rumpkern/signals.c:1.9	Wed May 18 15:57:14 2011
+++ src/sys/rump/librump/rumpkern/signals.c	Sat May 28 16:07:43 2011
@@ -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);
+}

Reply via email to