HomeFreeBSD

Add function to assert that the only descriptors we have open are the ones
rS218044Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Add function to assert that the only descriptors we have open are the ones
we expect to be open. Also assert that they point at expected type.

Because openlog(3) API is unable to tell us descriptor number it is using, we
have to close syslog socket, remember assert message in local buffer and if we
fail on assertion, reopen syslog socket and log the message.

MFC after: 1 week

Details

Provenance
pjdAuthored on
Parents
rS218043: Close all unneeded descriptors after fork(2).
Branches
Unknown
Tags
Unknown

Event Timeline