diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-21 00:18:58 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-07-21 00:18:58 +0000 |
commit | 677b0efe00584970c147295375c4b1631e23c45f (patch) | |
tree | f80dff9035065e3a0cea3250b626bce1fac949c3 /sys | |
parent | 3eacb2b52475cc8779210a756eca079351406a37 (diff) |
need systrace_lock/unlock around lockmgr lock operation. provos ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/systrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index eaf2e5a122d..ffe448f2aeb 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -356,7 +356,9 @@ systracef_select(fp, which, p) if (which != FREAD) return (0); + systrace_lock(); lockmgr(&fst->lock, LK_EXCLUSIVE, NULL, p); + systrace_unlock(); ready = TAILQ_FIRST(&fst->messages) != NULL; if (!ready) selrecord(p, &fst->si); |