Date: Sat, 13 Sep 2003 21:34:44 -0400 (EDT) From: Mikhail Kruk <meshko@cs.brandeis.edu> To: "Marc G. Fournier" <scrappy@hub.org> Cc: freebsd-stable@freebsd.org Subject: Re: thread safe functions missing ... ? Message-ID: <Pine.LNX.4.44.0309132131020.6064-100000@medea.cs.brandeis.edu> In-Reply-To: <20030913222303.H82880@ganymede.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Your gethostbyname() is _not_ thread-safe > Your getpwuid() is _not_ thread-safe both functions have never been thread safe on Unix. There is getpwuid_r in CURRENT. There is a pr about gethostbyname not being thread safe: http://www.freebsd.org/cgi/query-pr.cgi?pr=18824 I guess for now you'll need to protect them by a mutex manually.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0309132131020.6064-100000>