From 183fe77055c38835fe620343046f70395734159b Mon Sep 17 00:00:00 2001 From: Marco S Hyman Date: Fri, 6 Jan 2006 07:29:37 +0000 Subject: Initialize thread debug in _rthread_init. The debug verbosity can be set in the environment using RTHREAD_DEBUG. ok, tedu@ --- lib/librthread/rthread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/librthread/rthread.c') 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 * 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; -- cgit v1.2.3