> > 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 -- [EMAIL PROTECTED] ICQ: 96771783 http://tim.klingt.org Linux is like a wigwam: no windows, no gates, apache inside, stable.
signature.asc
Description: This is a digitally signed message part