HomeFreeBSD

timeout(1): pass full 32bit error return code from the exited child

Description

timeout(1): pass full 32bit error return code from the exited child

Switch to use waitid(2) to receive siginfo_t with the complete error
code from the exited process.

Tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50752

Details

Provenance
kibAuthored on Jun 9 2025, 3:20 AM
Reviewer
markj
Differential Revision
D50752: Fixes for timeout(1)
Parents
rGaa8cdb7cae7b: timeout(1): only start the child command after the parent is fully set up
Branches
Unknown
Tags
Unknown