Date: Fri, 12 Feb 2010 16:00:18 GMT From: pluknet <pluknet@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/143807: pthread_create retval check fixup Message-ID: <201002121600.o1CG0ICv090348@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/143807; it has been noted by GNATS. From: pluknet <pluknet@gmail.com> To: Ruslan Ermilov <ru@freebsd.org> Cc: bug-followup@freebsd.org Subject: Re: misc/143807: pthread_create retval check fixup Date: Fri, 12 Feb 2010 18:53:33 +0300 On 12 February 2010 18:22, Ruslan Ermilov <ru@freebsd.org> wrote: > On Thu, Feb 11, 2010 at 04:53:14PM +0000, pluknet wrote: >> I faced with incorrect return code checking in netrate's pthread_create(3) >> calls: pthread_create may return errcode > 0, while in netrate/ code >> pthread_create() checked for < 0 on error. > > The scope of the problem isn't limited just to pthread_create(). > In fact, it seems to be a common problem (I only scanned > src/tools/): Yep, that's what I came with later in PR. Just tried to not affect too much at one step. -- wbr, pluknet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002121600.o1CG0ICv090348>