diff options
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); |