summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2003-12-23 20:10:45 +0000
committerbrad <brad@openbsd.org>2003-12-23 20:10:45 +0000
commit38fb14eac353e081cf41c9d9f03c922e9ecf51a0 (patch)
treed7877a48f3c1354657e5cf1a2af93c0ac40bf385
parentUse getopt(3) correctly. (diff)
downloadwireguard-openbsd-38fb14eac353e081cf41c9d9f03c922e9ecf51a0.tar.xz
wireguard-openbsd-38fb14eac353e081cf41c9d9f03c922e9ecf51a0.zip
change the variable name used for status checking,
LIBC_R_DEBUG -> LIBPTHREAD_DEBUG ok marc@
-rw-r--r--lib/libpthread/man/pthreads.34
-rw-r--r--lib/libpthread/uthread/uthread_gc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/man/pthreads.3 b/lib/libpthread/man/pthreads.3
index 00f716c9564..937c02a26c8 100644
--- a/lib/libpthread/man/pthreads.3
+++ b/lib/libpthread/man/pthreads.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pthreads.3,v 1.19 2003/05/18 13:06:33 jmc Exp $
+.\" $OpenBSD: pthreads.3,v 1.20 2003/12/23 20:10:45 brad Exp $
.\" David Leonard <d@openbsd.org>, 1998. Public domain.
.Dd August 17, 1998
.Dt PTHREADS 3
@@ -184,7 +184,7 @@ or
Enables verbose
.Dv SIGINFO
signal output.
-.It Ev LIBC_R_DEBUG
+.It Ev LIBPTHREAD_DEBUG
Display thread status every time the garbage collection thread runs,
approximately once every 10 seconds.
The status display verbosity is controlled by the
diff --git a/lib/libpthread/uthread/uthread_gc.c b/lib/libpthread/uthread/uthread_gc.c
index 1fb1e56be4a..d59708d753d 100644
--- a/lib/libpthread/uthread/uthread_gc.c
+++ b/lib/libpthread/uthread/uthread_gc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_gc.c,v 1.12 2003/01/31 04:46:17 marc Exp $ */
+/* $OpenBSD: uthread_gc.c,v 1.13 2003/12/23 20:10:45 brad Exp $ */
/*
* Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -66,7 +66,7 @@ _thread_gc(pthread_addr_t arg)
curthread->flags |= PTHREAD_FLAGS_PRIVATE;
/* Set a debug flag based on an environment variable. */
- f_debug = (getenv("LIBC_R_DEBUG") != NULL);
+ f_debug = (getenv("LIBPTHREAD_DEBUG") != NULL);
/* Set the name of this thread. */
pthread_set_name_np(curthread, (char *)"GC");