Date: Fri, 12 May 2006 08:52:17 +0200 From: joerg@britannica.bec.de To: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libc/gen syslog.c Message-ID: <20060512065217.GA1597@britannica.bec.de> In-Reply-To: <20060511224018.J54716@mp2.macomnet.net> References: <200605110910.k4B9AYK5065047@repoman.freebsd.org> <20060511224018.J54716@mp2.macomnet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 11, 2006 at 10:41:37PM +0400, Maxim Konovalov wrote: > On Thu, 11 May 2006, 09:10-0000, David Xu wrote: > > > davidxu 2006-05-11 09:10:33 UTC > > > > FreeBSD src repository > > > > Modified files: > > lib/libc/gen syslog.c > > Log: > > Save errno before calling pthread_mutex_lock because pthread_mutex_lock > > may change errno unexpectly. > > AFAIR POSIX's pthread_* don't change errno. Is it a bug in our > implementation? I agree that SUS doesn't specify any case where pthread_mutex_lock can change errno. The major difference is that those functions return the error directly. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060512065217.GA1597>