summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-10-20 20:50:17 +0000
committerjilles <jilles@FreeBSD.org>2013-10-20 20:50:17 +0000
commitdc3e99b30a821620f294c8ab10d3812f4dc37479 (patch)
tree64ff7463d9c0fc86a6e098f9cddfbce834ca6703 /sys/ufs
parent297f76c244d3294522191a95f6c99c128e5b75f5 (diff)
downloadFreeBSD-src-dc3e99b30a821620f294c8ab10d3812f4dc37479.zip
FreeBSD-src-dc3e99b30a821620f294c8ab10d3812f4dc37479.tar.gz
popen(): Try to prevent inappropriate fd passing even if 'e' is not used.
Even though not all race conditions can be fixed if the 'e' option is not used, still fix some race conditions using pipe2(): * Prevent both ends of the pipe from leaking to a concurrent popen(). * Prevent the child process's end of the pipe from leaking to any concurrent fork and exec. This change also simplifies the code.
Diffstat (limited to 'sys/ufs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud