[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)



> >   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

tim

--
tim@klingt.org    ICQ: 96771783
http://tim.klingt.org

Linux is like a wigwam: no windows, no gates, apache inside, stable.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: