HomeFreeBSD

The si_status field of the siginfo_t, provided by the waitid(2) and

Description

The si_status field of the siginfo_t, provided by the waitid(2) and
SIGCHLD signal, should keep full 32 bits of the status passed to the
_exit(2).

Split the combined p_xstat of the struct proc into the separate exit
status p_xexit for normal process exit, and signalled termination
information p_xsig. Kernel-visible macro KW_EXITCODE() reconstructs
old p_xstat from p_xexit and p_xsig. p_xexit contains complete status
and copied out into si_status.

Requested by: Joerg Schilling
Reviewed by: jilles (previous version), pho
Tested by: pho
Sponsored by: The FreeBSD Foundation

Details

Provenance
kibAuthored on
Reviewer
jilles
Parents
rS285669: Since the IETF has redefined the meaning of the tos field to accommodate
Branches
Unknown
Tags
Unknown