summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-05-31 14:52:26 +0000
committervisa <visa@openbsd.org>2018-05-31 14:52:26 +0000
commitb0423a0d9ba5d4cabdd11a4c863bdabab0d16084 (patch)
tree94dec907356b33f2658d455df7488a099b91d5bd
parent- Replace virtual(5) reference by table(5) as virtual table format is (diff)
downloadwireguard-openbsd-b0423a0d9ba5d4cabdd11a4c863bdabab0d16084.tar.xz
wireguard-openbsd-b0423a0d9ba5d4cabdd11a4c863bdabab0d16084.zip
Make witness(4) watch locks and print error stack traces by default.
Requested by deraadt@
-rw-r--r--sys/kern/subr_witness.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 62fd6f02d75..119a51a3359 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_witness.c,v 1.16 2018/05/16 14:57:22 visa Exp $ */
+/* $OpenBSD: subr_witness.c,v 1.17 2018/05/31 14:52:26 visa Exp $ */
/*-
* Copyright (c) 2008 Isilon Systems, Inc.
@@ -366,7 +366,7 @@ static void witness_setflag(struct lock_object *lock, int flag, int set);
#ifdef WITNESS_WATCH
static int witness_watch = 3;
#else
-static int witness_watch = 0;
+static int witness_watch = 2;
#endif
#ifdef WITNESS_SKIPSPIN