diff options
author | 2012-05-01 03:21:50 +0000 | |
---|---|---|
committer | 2012-05-01 03:21:50 +0000 | |
commit | 1192233ba7af96ff8c91e99c10b45b31cb1af18c (patch) | |
tree | 3644b5a92fc7953817bbca7d50148d6739aba6d5 | |
parent | Use paged searches so we can handle larger directories. Servers that don't (diff) | |
download | wireguard-openbsd-1192233ba7af96ff8c91e99c10b45b31cb1af18c.tar.xz wireguard-openbsd-1192233ba7af96ff8c91e99c10b45b31cb1af18c.zip |
Correct the error path in execve when there's a race to single thread
the process.
noted and ok markus@
-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 4af5428542f..e7a2b3a53f7 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.130 2012/04/22 05:43:14 guenther Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.131 2012/05/01 03:21:50 guenther Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -269,7 +269,7 @@ sys_execve(struct proc *p, void *v, register_t *retval) /* get other threads to stop */ if ((error = single_thread_set(p, SINGLE_UNWIND, 1))) - goto bad; + return (error); /* * Cheap solution to complicated problems. |