Page MenuHomeFreeBSD

tests: Fix race condition in aslr_setuid, take 2
ClosedPublic

Authored by des on Jun 23 2026, 7:46 AM.
Tags
None
Referenced Files
F166297853: D57763.diff
Wed, Aug 12, 6:02 PM
Unknown Object (File)
Mon, Aug 10, 7:34 AM
Unknown Object (File)
Mon, Aug 10, 2:34 AM
Unknown Object (File)
Sun, Aug 9, 4:02 AM
Unknown Object (File)
Sat, Aug 8, 9:52 PM
Unknown Object (File)
Sat, Aug 8, 4:53 PM
Unknown Object (File)
Sat, Aug 8, 11:59 AM
Unknown Object (File)
Sat, Aug 8, 11:20 AM
Subscribers

Details

Summary

Instead of a cloexec pipe, ingest ping's stdout and block until it has
printed its initial summary, then close the pipe and return to the main
test loop. Run ping in quiet mode so it won't mind that stdout is gone.

PR: 296116
MFC after: 1 week
Fixes: 080a4087014e ("tests: Fix race condition in aslr_setuid")

Diff Detail

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

Event Timeline

des requested review of this revision.Jun 23 2026, 7:46 AM

Note: this only works after D57765, otherwise the initial line is buffered and we block forever.

This revision is now accepted and ready to land.Jun 23 2026, 2:08 PM
This revision was automatically updated to reflect the committed changes.