aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-06 13:55:17 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-06 13:55:17 +0000
commit055b0d27f6aba9c43c93c0f368bba7b987816e7f (patch)
tree45fc1e4e9ca14b81894c33c0ac1c1245d064c4ae /src
parent4a72dbc1aee1890f2952070ba125796ab0309367 (diff)
downloadpostgresql-055b0d27f6aba9c43c93c0f368bba7b987816e7f.tar.gz
postgresql-055b0d27f6aba9c43c93c0f368bba7b987816e7f.zip
Add thread program mention of errno thread-safety.
Diffstat (limited to 'src')
-rw-r--r--src/tools/thread/thread_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/thread/thread_test.c b/src/tools/thread/thread_test.c
index dc8e3689bea..57cabd98c31 100644
--- a/src/tools/thread/thread_test.c
+++ b/src/tools/thread/thread_test.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.15 2004/04/05 14:13:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.16 2004/04/06 13:55:17 momjian Exp $
*
* This program tests to see if your standard libc functions use
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -85,6 +85,8 @@ defines to your template/$port file before compiling this program.\n\n"
while (thread1_done == 0 || thread2_done == 0)
sched_yield(); /* if this is a portability problem, remove it */
+ fprintf(stderr, "errno is thread-safe\n\n");
+
printf("Add this to your template/$port file:\n\n");
if (strerror_p1 != strerror_p2)