Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 need to lock the process.
details: https://anonhg.NetBSD.org/src/rev/4ad9e8699ab6
branches: trunk
changeset: 326290:4ad9e8699ab6
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 24 22:44:00 2014 +0000
description:
need to lock the process.
diffstat:
sys/compat/netbsd32/netbsd32_compat_13.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 98070d18f0e6 -r 4ad9e8699ab6 sys/compat/netbsd32/netbsd32_compat_13.c
--- a/sys/compat/netbsd32/netbsd32_compat_13.c Fri Jan 24 22:11:46 2014 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_13.c Fri Jan 24 22:44:00 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_compat_13.c,v 1.25 2008/05/29 14:51:26 mrg Exp $ */
+/* $NetBSD: netbsd32_compat_13.c,v 1.26 2014/01/24 22:44:00 christos Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_13.c,v 1.25 2008/05/29 14:51:26 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_13.c,v 1.26 2014/01/24 22:44:00 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -62,11 +62,14 @@
} */
sigset13_t ness, oess;
sigset_t nbss, obss;
+ struct proc *p = l->l_proc;
int error;
ness = SCARG(uap, mask);
native_sigset13_to_sigset(&ness, &nbss);
+ mutex_enter(p->p_lock);
error = sigprocmask1(l, SCARG(uap, how), &nbss, &obss);
+ mutex_exit(p->p_lock);
if (error)
return (error);
native_sigset_to_sigset13(&obss, &oess);
Home |
Main Index |
Thread Index |
Old Index