Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 04 Jan 2018 21:56:58
Message-Id: 1515102985.f55020edf090cbed908c211ca4c4a143430c39e9.mgorny@gentoo
1 commit: f55020edf090cbed908c211ca4c4a143430c39e9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 31 10:32:03 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 4 21:56:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55020ed
7
8 multiprocessing.eclass: Remove bashpid function
9
10 Remove the bashpid function that is not used anywhere after the removal
11 of multijob* logic. The unprefixed name can be quite confusing,
12 and the function itself is rather unlikely to be useful.
13
14 eclass/multiprocessing.eclass | 17 -----------------
15 1 file changed, 17 deletions(-)
16
17 diff --git a/eclass/multiprocessing.eclass b/eclass/multiprocessing.eclass
18 index cfe22303043..6ca9b4fa785 100644
19 --- a/eclass/multiprocessing.eclass
20 +++ b/eclass/multiprocessing.eclass
21 @@ -26,23 +26,6 @@
22 if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then
23 _MULTIPROCESSING_ECLASS=1
24
25 -# @FUNCTION: bashpid
26 -# @DESCRIPTION:
27 -# Return the process id of the current sub shell. This is to support bash
28 -# versions older than 4.0 that lack $BASHPID support natively. Simply do:
29 -# echo ${BASHPID:-$(bashpid)}
30 -#
31 -# Note: Using this func in any other way than the one above is not supported.
32 -bashpid() {
33 - # Running bashpid plainly will return incorrect results. This func must
34 - # be run in a subshell of the current subshell to get the right pid.
35 - # i.e. This will show the wrong value:
36 - # bashpid
37 - # But this will show the right value:
38 - # (bashpid)
39 - sh -c 'echo ${PPID}'
40 -}
41 -
42 # @FUNCTION: get_nproc
43 # @USAGE: [${fallback:-1}]
44 # @DESCRIPTION: