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_exec.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_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 192d5e66ff6..81a5b2c96c9 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.220 2021/03/08 10:12:05 mpi Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.221 2021/03/08 18:09:15 claudio Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -432,7 +432,7 @@ sys_execve(struct proc *p, void *v, register_t *retval) * we're committed: any further errors will kill the process, so * kill the other threads now. */ - single_thread_set(p, SINGLE_EXIT, 1); + single_thread_set(p, SINGLE_EXIT, 0); /* * Prepare vmspace for remapping. Note that uvmspace_exec can replace |