Source-Changes-HG archive

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

[src/trunk]: src/tests/kernel back to expecting SIGSTOP after ptrace



details:   https://anonhg.NetBSD.org/src/rev/f9d85be088c4
branches:  trunk
changeset: 348875:f9d85be088c4
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 12 20:03:53 2016 +0000

description:
back to expecting SIGSTOP after ptrace

diffstat:

 tests/kernel/t_ptrace_wait.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r ab7ac9281f39 -r f9d85be088c4 tests/kernel/t_ptrace_wait.c
--- a/tests/kernel/t_ptrace_wait.c      Sat Nov 12 20:03:17 2016 +0000
+++ b/tests/kernel/t_ptrace_wait.c      Sat Nov 12 20:03:53 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.9 2016/11/12 19:44:59 christos Exp $       */
+/*     $NetBSD: t_ptrace_wait.c,v 1.10 2016/11/12 20:03:53 christos Exp $      */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.9 2016/11/12 19:44:59 christos Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.10 2016/11/12 20:03:53 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -615,7 +615,7 @@
                FORKEE_REQUIRE_SUCCESS(
                    wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
 
-               forkee_status_stopped(status, SIGTRAP);
+               forkee_status_stopped(status, SIGSTOP);
 
                /* Resume tracee with PT_CONTINUE */
                FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
@@ -743,7 +743,7 @@
                FORKEE_REQUIRE_SUCCESS(
                    wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
 
-               forkee_status_stopped(status, SIGTRAP);
+               forkee_status_stopped(status, SIGSTOP);
 
                /* Resume tracee with PT_CONTINUE */
                FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);
@@ -952,7 +952,7 @@
                FORKEE_REQUIRE_SUCCESS(
                    wpid = TWAIT_GENERIC(getppid(), &status, 0), getppid());
 
-               forkee_status_stopped(status, SIGTRAP);
+               forkee_status_stopped(status, SIGSTOP);
 
                printf("Resume parent with PT_DETACH\n");
                FORKEE_ASSERT(ptrace(PT_DETACH, getppid(), (void *)1, 0)
@@ -1071,7 +1071,7 @@
                FORKEE_REQUIRE_SUCCESS(
                    wpid = TWAIT_GENERIC(tracee, &status, 0), tracee);
 
-               forkee_status_stopped(status, SIGTRAP);
+               forkee_status_stopped(status, SIGSTOP);
 
                /* Resume tracee with PT_CONTINUE */
                FORKEE_ASSERT(ptrace(PT_CONTINUE, tracee, (void *)1, 0) != -1);



Home | Main Index | Thread Index | Old Index