HomeFreeBSD

tests/unix_passfd: add test for shutdown(2) on a buffer with an fd

Description

tests/unix_passfd: add test for shutdown(2) on a buffer with an fd

This has two goals:

  • Exercize call to unp_dispose() via soshutdown() instead of sofree()
  • Make sure that shutdown indeed dereferences the fd stored

Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35122

Details

Provenance
glebiusAuthored on May 9 2022, 5:42 PM
Reviewer
markj
Differential Revision
D35122: tests/unix_passfd: add test for shutdown(2) on a buffer with an fd
Parents
rG7496792841b9: ng_socket: don't assign NULL in C99 sparse initializer
Branches
Unknown
Tags
Unknown