Ticket #205: trywrlock_ebusy.diff

File trywrlock_ebusy.diff, 291 bytes (added by KO Myung-Hun, 5 years ago)

Patch for pthread_rwlock_trywrlock() returning 0 even if the other thread already had lock

  • rwlock.c

     
    180189    else
    181190      rc = EBUSY;
    182191  }
     192  else
     193    rc = EBUSY;
    183194
    184195  pthread_mutex_unlock(&lock->mutex);
    185196  return rc;