summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1998-09-30 19:17:51 +0000
committerdt <dt@FreeBSD.org>1998-09-30 19:17:51 +0000
commit19436f61f4d4338c3f9f61a95eabadec8adac5a9 (patch)
treea2cd63a9ac5a3fbed09d5e805a53c600aaada272 /lib
parent31d07cd03177039c140d3763d5a2fc98292e71de (diff)
downloadFreeBSD-src-19436f61f4d4338c3f9f61a95eabadec8adac5a9.zip
FreeBSD-src-19436f61f4d4338c3f9f61a95eabadec8adac5a9.tar.gz
Debug when an environment variable set, no when it is unset.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/uthread_gc.c4
-rw-r--r--lib/libpthread/thread/thr_gc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_gc.c b/lib/libc_r/uthread/uthread_gc.c
index faf1b5d..f297fa8 100644
--- a/lib/libc_r/uthread/uthread_gc.c
+++ b/lib/libc_r/uthread/uthread_gc.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: uthread_gc.c,v 1.1 1998/09/30 06:36:56 jb Exp $
*
* Garbage collector thread. Frees memory allocated for dead threads.
*
@@ -55,7 +55,7 @@ _thread_gc(pthread_addr_t arg)
void *p_stack;
/* Set a debug flag based on an environment variable. */
- f_debug = (getenv("LIBC_R_DEBUG") == NULL);
+ f_debug = (getenv("LIBC_R_DEBUG") != NULL);
/* Set the name of this thread. */
pthread_set_name_np(_thread_run,"GC");
diff --git a/lib/libpthread/thread/thr_gc.c b/lib/libpthread/thread/thr_gc.c
index faf1b5d..f297fa8 100644
--- a/lib/libpthread/thread/thr_gc.c
+++ b/lib/libpthread/thread/thr_gc.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: uthread_gc.c,v 1.1 1998/09/30 06:36:56 jb Exp $
*
* Garbage collector thread. Frees memory allocated for dead threads.
*
@@ -55,7 +55,7 @@ _thread_gc(pthread_addr_t arg)
void *p_stack;
/* Set a debug flag based on an environment variable. */
- f_debug = (getenv("LIBC_R_DEBUG") == NULL);
+ f_debug = (getenv("LIBC_R_DEBUG") != NULL);
/* Set the name of this thread. */
pthread_set_name_np(_thread_run,"GC");
OpenPOWER on IntegriCloud