Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 20:35:04 -0800 (PST)
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen popen.c
Message-ID:  <200301030435.h034Z4B6091154@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tjr         2003/01/02 20:35:04 PST

  Modified files:
    lib/libc/gen         popen.c 
  Log:
  Protect pidlist with a mutex to avoid a race causing a duplicate free()
  when the same pipe FILE is pclosed()'d in different threads, and to avoid
  corrupting the linked list when adding or removing items. The symptoms of
  the linked list getting corrupted were pclose() either not finding the pipe
  on the list, or the list becoming circular and pclose() looping infinitely.
  
  Revision  Changes    Path
  1.17      +24 -8     src/lib/libc/gen/popen.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?200301030435.h034Z4B6091154>