The shell relies on SIGCHLD to wait for children: the wait builtin, and
waiting for foreground jobs with set -T, sleep in sigsuspend() until it
arrives. If the shell was started with SIGCHLD blocked, nothing can
wake it up, so these hang forever even after the child has exited, and
SIGCHLD traps never run.
Unblock SIGCHLD at startup, which is consistent with what other shells
do (including tcsh, zsh, bash). Consequently, the commands we run
therefore no longer inherit SIGCHLD blocked; other blocked signals are
still passed on unchanged.
Sponsored by: Qualys, Inc.
Sponsored by: Klara, Inc.