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

(cherry picked from commit 3aac05f56620712744cb57d71a0ef42f8d8e3b52)

Details

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