On 05/11/2012 06:39 PM, Mike Frysinger wrote:
> +multijob_child_init() {
> +     trap 'echo ${BASHPID} $? >&'${mj_control_fd} EXIT
> +     trap 'exit 1' INT TERM
> +}

Just wondering why $! in parent isn't used anywhere, even not for some
integrity check if the child's BASHPID actually was forked by parent.

> +multijob_post_fork() {
> +     : $(( ++mj_num_jobs ))
> +     if [[ ${mj_num_jobs} -ge ${mj_max_jobs} ]] ; then
> +             multijob_finish_one

Feels like ignoring this child's exitstatus isn't intentional here.

> +     fi
> +     return 0
> +}

/haubi/

Reply via email to