summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-12-31 11:32:03 +0100
committerMichał Górny <mgorny@gentoo.org>2018-01-04 22:56:25 +0100
commitf55020edf090cbed908c211ca4c4a143430c39e9 (patch)
tree5b4bee19a1533740f0a0a64733795b9220ceaa2b /eclass
parentmultiprocessing.eclass: Remove multijob_* functions (diff)
downloadgentoo-f55020edf090cbed908c211ca4c4a143430c39e9.tar.gz
gentoo-f55020edf090cbed908c211ca4c4a143430c39e9.tar.bz2
gentoo-f55020edf090cbed908c211ca4c4a143430c39e9.zip
multiprocessing.eclass: Remove bashpid function
Remove the bashpid function that is not used anywhere after the removal of multijob* logic. The unprefixed name can be quite confusing, and the function itself is rather unlikely to be useful.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multiprocessing.eclass17
1 files changed, 0 insertions, 17 deletions
diff --git a/eclass/multiprocessing.eclass b/eclass/multiprocessing.eclass
index cfe22303043e..6ca9b4fa7850 100644
--- a/eclass/multiprocessing.eclass
+++ b/eclass/multiprocessing.eclass
@@ -26,23 +26,6 @@
if [[ -z ${_MULTIPROCESSING_ECLASS} ]]; then
_MULTIPROCESSING_ECLASS=1
-# @FUNCTION: bashpid
-# @DESCRIPTION:
-# Return the process id of the current sub shell. This is to support bash
-# versions older than 4.0 that lack $BASHPID support natively. Simply do:
-# echo ${BASHPID:-$(bashpid)}
-#
-# Note: Using this func in any other way than the one above is not supported.
-bashpid() {
- # Running bashpid plainly will return incorrect results. This func must
- # be run in a subshell of the current subshell to get the right pid.
- # i.e. This will show the wrong value:
- # bashpid
- # But this will show the right value:
- # (bashpid)
- sh -c 'echo ${PPID}'
-}
-
# @FUNCTION: get_nproc
# @USAGE: [${fallback:-1}]
# @DESCRIPTION: