summaryrefslogtreecommitdiffstats
path: root/sbin/dumpfs
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-06-19 22:21:59 +0000
committerpjd <pjd@FreeBSD.org>2012-06-19 22:21:59 +0000
commit81ad62d5c5ada4f045f95f14c8e2346b0fbd8e6c (patch)
tree10ee8b46a0db9f178c6e45564496a9aac9ad30dc /sbin/dumpfs
parent571562fffb435a478f0591879dd19fe9227cb52e (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud