diff options
author | pjd <pjd@FreeBSD.org> | 2012-06-13 21:32:35 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-06-13 21:32:35 +0000 |
commit | f695b590b4c9789422bbd4036eb6bc2792dcfbac (patch) | |
tree | e00e28ee04040eddb61f3564b1a68eebe20ca4cd /lib/libc/regex/regexec.c | |
parent | f7e18321ef9850591a2250b2f534c3d87ffe87fc (diff) | |
download | FreeBSD-src-f695b590b4c9789422bbd4036eb6bc2792dcfbac.zip FreeBSD-src-f695b590b4c9789422bbd4036eb6bc2792dcfbac.tar.gz |
Allocate descriptor number in dupfdopen() itself instead of depending on
the caller using finstall().
This saves us the filedesc lock/unlock cycle, fhold()/fdrop() cycle and closes
a race between finstall() and dupfdopen().
MFC after: 1 month
Diffstat (limited to 'lib/libc/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions