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)
Tue, Sep 23, 1:02 AM
Unknown Object (File)
Sat, Sep 20, 4:34 AM
Unknown Object (File)
Fri, Sep 12, 6:17 PM
Unknown Object (File)
Fri, Sep 12, 8:16 AM
Unknown Object (File)
Thu, Sep 11, 3:16 PM
Unknown Object (File)
Thu, Sep 11, 4:10 AM
Unknown Object (File)
Sep 6 2025, 5:47 PM
Unknown Object (File)
Aug 14 2025, 11:17 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