HomeFreeBSD

pwait: Fix timeout unit parser

Description

pwait: Fix timeout unit parser

The timeout parser would check the first character after the number and
ignore any subsequent ones.

While here, switch to bool for booleans and fix some style nits.

MFC after: 1 week
Reviewed by: 0mp, markj
Differential Revision: https://reviews.freebsd.org/D52612

Details

Provenance
desAuthored on Sep 23 2025, 12:56 PM
Reviewer
0mp
Differential Revision
D52612: pwait: Fix timeout unit parser
Parents
rG5953e7c98427: rc.subr: Move the sleep in wait_for_pids
Branches
Unknown
Tags
Unknown