summaryrefslogtreecommitdiffstats
path: root/sys/dev/systrace.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-07-20 00:03:37 +0000
committeritojun <itojun@openbsd.org>2002-07-20 00:03:37 +0000
commit11b31e9e210e0cf1909ac6dd7ea6af31299d271b (patch)
treecca4117855f0c4dbcf15db49365313ba5176912e /sys/dev/systrace.c
parentdon't try to find a "suitable" bourne shell for subcommands, just use our (diff)
downloadwireguard-openbsd-11b31e9e210e0cf1909ac6dd7ea6af31299d271b.tar.xz
wireguard-openbsd-11b31e9e210e0cf1909ac6dd7ea6af31299d271b.zip
comment clarification. niels ok
Diffstat (limited to 'sys/dev/systrace.c')
-rw-r--r--sys/dev/systrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 479d09a1966..eaf2e5a122d 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -671,8 +671,9 @@ systrace_redirect(int code, struct proc *p, void *v, register_t *retval)
/* Puts the current process to sleep, return unlocked */
error = systrace_msg_ask(fst, strp, code, callp->sy_argsize, v);
- /* We might have detached by now for some reason */
+ /* lock has been released in systrace_msg_ask() */
fst = NULL;
+ /* We might have detached by now for some reason */
if (!error && (strp = p->p_systrace) != NULL) {
/* XXX - do I need to lock here? */
if (strp->answer == SYSTR_POLICY_NEVER) {