Skip to content

Commit 055b0d2

Browse files
committed
Add thread program mention of errno thread-safety.
1 parent 4a72dbc commit 055b0d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/thread/thread_test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.15 2004/04/05 14:13:45 momjian Exp $
9+
* $PostgreSQL: pgsql/src/tools/thread/thread_test.c,v 1.16 2004/04/06 13:55:17 momjian Exp $
1010
*
1111
* This program tests to see if your standard libc functions use
1212
* pthread_setspecific()/pthread_getspecific() to be thread-safe.
@@ -85,6 +85,8 @@ defines to your template/$port file before compiling this program.\n\n"
8585
while (thread1_done == 0 || thread2_done == 0)
8686
sched_yield(); /* if this is a portability problem, remove it */
8787

88+
fprintf(stderr, "errno is thread-safe\n\n");
89+
8890
printf("Add this to your template/$port file:\n\n");
8991

9092
if (strerror_p1 != strerror_p2)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy