[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#434294: closed by Pierre Habouzit <madcoder@debian.org> (Re: Bug#434294: libc6: buggy unlocking of an unlocked pthread_rwlock_t)



On Mon, Jul 23, 2007 at 11:05:09AM +0200, Tim Blechmann wrote:
> > >   please learn how to use errno. When a call fails in posix it
> > > returns a
> > > negative value, usually -1, and sets errno. you must test errno for
> > > EPERM. not the return value.
> > > 
> 
> quoting man pthread_rwlock_unlock:
> If  successful, the pthread_rwlock_unlock() function shall return zero;
> otherwise, an error number shall be returned to indicate the error.
> 
> maybe this is a bit mistakable?
> 
> anyway, pthread_rwlock_unlock returns 0, not -1 and not EPERM

  yeah, I was wrong, I read the manpage to quickly. Anyways, you got
your answer on the glibc bugzilla already.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgphLXrPAaSth.pgp
Description: PGP signature


Reply to: