Page MenuHomeFreeBSD

rc.subr: Fix premature return from wait_for_pids
ClosedPublic

Authored by des on Jul 22 2026, 8:18 AM.
Tags
None
Referenced Files
F171270193: D58391.diff
Thu, Sep 10, 12:27 AM
Unknown Object (File)
Sun, Sep 6, 1:27 PM
Unknown Object (File)
Sat, Sep 5, 12:08 PM
Unknown Object (File)
Sat, Sep 5, 8:32 AM
Unknown Object (File)
Fri, Sep 4, 3:48 PM
Unknown Object (File)
Fri, Sep 4, 12:53 AM
Unknown Object (File)
Thu, Sep 3, 11:57 PM
Unknown Object (File)
Thu, Sep 3, 10:42 PM
Subscribers

Details

Summary

Use pwait's new -r option to wait until the target processes have not
only terminated, but also been reaped.

PR: 293183
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.

Diff Detail

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

Event Timeline

des requested review of this revision.Jul 22 2026, 8:18 AM
markj added a subscriber: markj.

Should this have a Fixes: tag?

Maybe we should provide a backwards compat shim which checks whether the installed pwait supports -r and falls back to something else if not. I'm not sure if it's worth it.

UPDATING
34

I don't know what "fastboot" means, maybe write "use fastboot(8)" to be a bit more explicit.

This revision is now accepted and ready to land.Jul 23 2026, 4:03 PM
des marked an inline comment as done.Jul 23 2026, 4:41 PM
This revision now requires review to proceed.Jul 23 2026, 5:48 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jul 27 2026, 10:17 AM
This revision was automatically updated to reflect the committed changes.