HomeFreeBSD

Unignore signals when starting CloudABI processes.

Description

Unignore signals when starting CloudABI processes.

As CloudABI processes cannot adjust their signal handlers, we need to
make sure that we start up CloudABI processes with consistent signal
masks. Though the POSIx standard signal behavior is all right, we do
need to make sure that we ignore SIGPIPE, as it would otherwise be
hard to interact with pipes and sockets.

Extend execsigs() to iterate over ps_sigignore and call sigdflt() for
each of the ignored signals.

Reviewed by: kib
Obtained from: https://github.com/NuxiNL/freebsd
Differential Revision: https://reviews.freebsd.org/D3365

Details

Provenance
edAuthored on
Reviewer
kib
Differential Revision
D3365: Unignore signals when starting CloudABI processes.
Parents
rS286661: Use CAP_EVENT instead of CAP_PDWAIT.
Branches
Unknown
Tags
Unknown