Page MenuHomeFreeBSD

libthr: add some tests for pthread_atfork() handling
ClosedPublic

Authored by kevans on Oct 31 2024, 4:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 11, 6:21 PM
Unknown Object (File)
Mon, Dec 9, 5:55 AM
Unknown Object (File)
Wed, Dec 4, 10:51 PM
Unknown Object (File)
Nov 21 2024, 10:53 AM
Unknown Object (File)
Nov 14 2024, 12:44 PM
Unknown Object (File)
Nov 14 2024, 3:00 AM
Unknown Object (File)
Nov 13 2024, 11:08 AM
Unknown Object (File)
Nov 5 2024, 1:46 PM
Subscribers

Details

Summary

Test that it generally functions, and also that registering multiple times
calls each handler in the order that it's documented to call them in.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
lib/libthr/tests/atfork_test.c
46

Extra newline

98

OTOH, I think this could be written as a C function.

160

It'd be nice to have a short summary of the test here.

This revision is now accepted and ready to land.Oct 31 2024, 1:46 PM
kevans marked 2 inline comments as done.

Add some comments and a short description for the test listing.

This revision now requires review to proceed.Oct 31 2024, 4:40 PM
This revision is now accepted and ready to land.Oct 31 2024, 5:16 PM