cvs commit: src/sys/kern uipc_sem.c

Robert Watson rwatson at FreeBSD.org
Wed Jun 8 07:29:24 GMT 2005


rwatson     2005-06-08 07:29:23 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_sem.c 
  Log:
  In sem_forkhook(), don't attempt to generate a copy of the process semaphore
  list on fork() if the process doesn't actually have references to any
  semaphores.  This avoids extra work, as well as potentially asking to
  allocate storage for 0 references.
  
  Found by:       avatar
  MFC after:      1 week
  
  Revision  Changes    Path
  1.20      +4 -0      src/sys/kern/uipc_sem.c


More information about the cvs-src mailing list