public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-portage-dev] [RFC/PATCH] prepstrip/ecompressdir: parallelize operations
  @ 2012-05-14  7:33 99% ` Michael Haubenwallner
  0 siblings, 0 replies; 1+ results
From: Michael Haubenwallner @ 2012-05-14  7:33 UTC (permalink / raw
  To: gentoo-portage-dev



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/



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-05-11 16:39     [gentoo-portage-dev] [RFC/PATCH] prepstrip/ecompressdir: parallelize operations Mike Frysinger
2012-05-14  7:33 99% ` Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox