HomeFreeBSD

Fix unp_gc so that it recognizes file descriptors
rS190299Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix unp_gc so that it recognizes file descriptors
that are currently in the process of being passed
between processes as alive and does not
try to garbage collect them.

The full description of the problem and a test
program to reproduce it can be found in PR 112554.

This fix was inspired by similar fixes in NetBSD and BSD/OS.
However, it does not apply to FreeBSD 8 and above -
when this code was rewritten and optimized, the bug
was fixed in a different way. The test program in the
PR passes on 8-current with flying colors.

PR: 112554
Submitted by: Spencer Minear
Reviewed by: Mike Silbersack
Obtained from: Secure Computing Corp
MFC after: 4 weeks

Details

Provenance
silbyAuthored on
Parents
rS190298: Fix the behaviour of the read built-in when IFS is unset.
Branches
Unknown
Tags
Unknown

Event Timeline