Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2002 14:06:31 -0800 (PST)
From:      Alfred Perlstein <alfred@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sys_pipe.c
Message-ID:  <200203092206.g29M6VM73422@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
alfred      2002/03/09 14:06:31 PST

  Modified files:
    sys/kern             sys_pipe.c 
  Log:
  Don't deref NULL mutex pointer when pipeclose()'ing a pipe that is not
  fully instaniated.
  
  Revert the logic in pipeclose so that we don't have the entire function
  pretty much under a single if() statement, instead invert the test and
  just return if it fails.
  
  Submitted (in different form) by: bde
  
  Don't use pool mutexes for pipes.  We can not use pool mutexes
  because we will need to grab the select lock while holding a pipe
  lock which is not allowed because you may not aquire additional
  mutexes when holding a pool mutex.
  
  Instead malloc(9) space for the mutex that is shared between the
  pipes.
  
  Revision  Changes    Path
  1.95      +51 -30    src/sys/kern/sys_pipe.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203092206.g29M6VM73422>