diff options
author | pjd <pjd@FreeBSD.org> | 2012-06-19 22:21:59 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-06-19 22:21:59 +0000 |
commit | 81ad62d5c5ada4f045f95f14c8e2346b0fbd8e6c (patch) | |
tree | 10ee8b46a0db9f178c6e45564496a9aac9ad30dc /sbin/dumpfs | |
parent | 571562fffb435a478f0591879dd19fe9227cb52e (diff) | |
download | FreeBSD-src-81ad62d5c5ada4f045f95f14c8e2346b0fbd8e6c.zip FreeBSD-src-81ad62d5c5ada4f045f95f14c8e2346b0fbd8e6c.tar.gz |
The falloc() function obtains two references to newly created 'fp'.
On success we have to drop one after procdesc_finit() and on failure
we have to close allocated slot with fdclose(), which also drops one
reference for us and drop the remaining reference with fdrop().
Without this change closing process descriptor didn't result in killing
pdfork(2)ed child.
Reviewed by: rwatson
MFC after: 1 month
Diffstat (limited to 'sbin/dumpfs')
0 files changed, 0 insertions, 0 deletions