diff options
author | tjr <tjr@FreeBSD.org> | 2003-01-03 04:35:04 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-01-03 04:35:04 +0000 |
commit | bfa661b0f806da6f4d8835a5c9ad0f889fb5bf3d (patch) | |
tree | a07393236b67054d43b67d9362cd022d46373a56 /lib/libc/regex/utils.h | |
parent | a91193c322cb36f7490c039733dee7bd482dd4f2 (diff) | |
download | FreeBSD-src-bfa661b0f806da6f4d8835a5c9ad0f889fb5bf3d.zip FreeBSD-src-bfa661b0f806da6f4d8835a5c9ad0f889fb5bf3d.tar.gz |
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.
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions