diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-08 18:09:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-03-08 18:09:16 +0000 |
commit | c41468d1d5ba7cd5cf046159d5ed6943af7fd1df (patch) | |
tree | 5f43896e10030e402abac4096ac0f058f6910f57 /sys/kern/kern_exit.c | |
parent | 4e7e6ee9b14b9fb308eb8edfaab1531dde2b0e27 (diff) |
Revert commitid: AZrsCSWEYDm7XWuv;
Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semantic.
This diff did not properly kill SINGLE_PTRACE and broke RAMDISK kernels.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index fa72891271e..8898286ea81 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.197 2021/03/08 10:12:05 mpi Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.198 2021/03/08 18:09:15 claudio Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -136,7 +136,7 @@ exit1(struct proc *p, int xexit, int xsig, int flags) } else { /* nope, multi-threaded */ if (flags == EXIT_NORMAL) - single_thread_set(p, SINGLE_EXIT, 1); + single_thread_set(p, SINGLE_EXIT, 0); else if (flags == EXIT_THREAD) single_thread_check(p, 0); } |