Module Name: src
Committed By: jmcneill
Date: Sat Sep 3 12:48:22 UTC 2011
Modified Files:
src/sys/arch/usermode/usermode: urkelvisor.c
Log Message:
if emulating the syscall, toggle insyscall as the child won't get stopped a
second time
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/usermode/usermode/urkelvisor.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/arch/usermode/usermode/urkelvisor.c
diff -u src/sys/arch/usermode/usermode/urkelvisor.c:1.1 src/sys/arch/usermode/usermode/urkelvisor.c:1.2
--- src/sys/arch/usermode/usermode/urkelvisor.c:1.1 Sat Sep 3 12:28:46 2011
+++ src/sys/arch/usermode/usermode/urkelvisor.c Sat Sep 3 12:48:22 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: urkelvisor.c,v 1.1 2011/09/03 12:28:46 jmcneill Exp $ */
+/* $NetBSD: urkelvisor.c,v 1.2 2011/09/03 12:48:22 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <[email protected]>
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: urkelvisor.c,v 1.1 2011/09/03 12:28:46 jmcneill Exp $");
+__RCSID("$NetBSD: urkelvisor.c,v 1.2 2011/09/03 12:48:22 jmcneill Exp $");
#endif
#include <sys/types.h>
@@ -129,6 +129,8 @@
insyscall = !insyscall;
if (insyscall) {
sig = handle_syscall(urkel_pid);
+ if (sig)
+ insyscall = !insyscall;
}
} else {
sig = WSTOPSIG(status);