Re: FreeBSD/i386 thread test
Bruce Momjian <pgman@candle.pha.pa.us>
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: "Jeroen Ruigrok/asmodai" <asmodai@wxs.nl>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>, pgsql-hackers@postgresql.org
Date: 2003-09-08T16:50:18Z
Lists: pgsql-hackers
Jeroen Ruigrok/asmodai wrote: > -On [20030908 06:32], Bruce Momjian (pgman@candle.pha.pa.us) wrote: > >> Your gethostbyname() is _not_ thread-safe > >> Your getpwuid() is _not_ thread-safe > >> Your functions are _not_ all thread-safe > > > >Interesting. Do you have all the *_r files listed in thread.c? I sure > >hope so. I assume you used the template thread compile flags for this > >test. > > Both gethostbyname() and getpwuid() have no _r equivalents on > FreeBSD-STABLE, ergo no thread-safe functions of these. So you don't have all the *_r functions, and your non-*_r functions aren't thread-safe. Should we disable theading on FreeBSD? Seems so. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073