diff options
author | 2006-01-06 07:29:36 +0000 | |
---|---|---|
committer | 2006-01-06 07:29:36 +0000 | |
commit | 26396bf8a7acbcb5705cb4905d505f51bc638d50 (patch) | |
tree | b65fdfcfcddcbdfb7d5cbd66b3e3da6c8fa90ef4 | |
parent | oring in PCATCH doesn't help if we don't pass the right prio to tsleep (diff) | |
download | wireguard-openbsd-26396bf8a7acbcb5705cb4905d505f51bc638d50.tar.xz wireguard-openbsd-26396bf8a7acbcb5705cb4905d505f51bc638d50.zip |
Initialize thread debug in _rthread_init. The debug verbosity
can be set in the environment using RTHREAD_DEBUG.
ok, tedu@
-rw-r--r-- | lib/librthread/rthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c index 876d68dff34..ec1029c0fe9 100644 --- a/lib/librthread/rthread.c +++ b/lib/librthread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.32 2006/01/06 06:13:27 tedu Exp $ */ +/* $OpenBSD: rthread.c,v 1.33 2006/01/06 07:29:36 marc Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -109,6 +109,8 @@ _rthread_init(void) _rthread_kq = kqueue(); if (_rthread_kq == -1) return (errno); + _rthread_debug_init(); + _rthread_debug(1, "rthread init\n"); _threads_ready = 1; __isthreaded = 1; |