Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: multiprocessing.eclass
Date: Mon, 30 Jul 2012 14:52:34
Message-Id: 20120730145218.D3D062004B@flycatcher.gentoo.org
1 vapier 12/07/30 14:52:18
2
3 Modified: multiprocessing.eclass
4 Log:
5 drop ebuild die hook once we have finished as there is no need to cleanup anymore
6
7 Revision Changes Path
8 1.2 eclass/multiprocessing.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multiprocessing.eclass?rev=1.2&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multiprocessing.eclass?rev=1.2&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multiprocessing.eclass?r1=1.1&r2=1.2
13
14 Index: multiprocessing.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/multiprocessing.eclass,v
17 retrieving revision 1.1
18 retrieving revision 1.2
19 diff -u -r1.1 -r1.2
20 --- multiprocessing.eclass 7 Jun 2012 04:59:40 -0000 1.1
21 +++ multiprocessing.eclass 30 Jul 2012 14:52:18 -0000 1.2
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2012 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/multiprocessing.eclass,v 1.1 2012/06/07 04:59:40 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/multiprocessing.eclass,v 1.2 2012/07/30 14:52:18 vapier Exp $
27
28 # @ECLASS: multiprocessing.eclass
29 # @MAINTAINER:
30 @@ -63,7 +63,7 @@
31 multijob_init() {
32 # When something goes wrong, try to wait for all the children so we
33 # don't leave any zombies around.
34 - has wait ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" wait"
35 + has wait ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" wait "
36
37 # Setup a pipe for children to write their pids to when they finish.
38 local pipe="${T}/multijob.pipe"
39 @@ -190,6 +190,9 @@
40 # Do this after reaping all the children.
41 [[ $# -eq 0 ]] || die "${FUNCNAME} takes no arguments"
42
43 + # No need to hook anymore.
44 + EBUILD_DEATH_HOOKS=${EBUILD_DEATH_HOOKS/ wait / }
45 +
46 return ${ret}
47 }