diff options
author | Marco S Hyman <marc@cvs.openbsd.org> | 2006-01-06 07:29:37 +0000 |
---|---|---|
committer | Marco S Hyman <marc@cvs.openbsd.org> | 2006-01-06 07:29:37 +0000 |
commit | 183fe77055c38835fe620343046f70395734159b (patch) | |
tree | 16f9bef2e1af5f3f3fbb42e0193c0c9e7adc2151 /lib/librthread/rthread.c | |
parent | 595f8eb9eeefaaa6c840e93b24276a82310b82bc (diff) |
Initialize thread debug in _rthread_init. The debug verbosity
can be set in the environment using RTHREAD_DEBUG.
ok, tedu@
Diffstat (limited to 'lib/librthread/rthread.c')
-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; |