假设我有以下bash
chld_handler() {
trap '' CHLD # ignore while we handle
echo "$(date)" # this won't trigger chld now
trap 'chld_handler' CHLD # restore
}
# I want to be notified of the exit of any of these processes
xterm &
xterm &
xterm &
trap 'chld_handler' CHLD # first time setup
如果其中一个作业过程退出,调用chld_handler
并且当处理程序运行另一个作业过程退出时会发生什么?第二个CHLD
信号会排队吗?