jhb         2008-06-26 13:51:25 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              semaphore.h 
  Log:
  SVN rev 180032 on 2008-06-26 13:51:25Z by jhb
  
  Change SEM_VALUE_MAX (maximum value of a POSIX semaphore) from UINT_MAX
  to INT_MAX.  Otherwise, a process could create a semaphore (or increase
  its value via ksem_post()) beyond INT_MAX and sem_getvalue() would return
  a negative value.  sem_getvalue() is only supposed to return a negative
  value if that is the number of waiters for that semaphore.
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.13      +3 -1      src/sys/sys/semaphore.h
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to