diff sources/functions.sh @ 773:2b9e8af90917

Remove wait4background, the shell has a builtin "wait" and we don't care about non-zero wait counts anymore.
author Rob Landley <rob@landley.net>
date Wed, 01 Jul 2009 18:53:00 -0500
parents 27f007ea2129
children 37c083cca810
line wrap: on
line diff
--- a/sources/functions.sh	Wed Jul 01 18:02:44 2009 -0500
+++ b/sources/functions.sh	Wed Jul 01 18:53:00 2009 -0500
@@ -419,25 +419,6 @@
     echo -en "\033]2;$ARCH_NAME $STAGE_NAME $PACKAGE\007"
 }
 
-# usage: wait4background [count]
-
-function wait4background()
-{
-  local COUNT="$1"
-  local EXCLUDE="$2"
-
-  [ -z "$COUNT" ] && COUNT=0
-  [ -z "$EXCLUDE" ] && EXCLUDE="thisdoesnotmatchanything"
-  # Wait for background tasks to finish
-  while [ $(jobs | grep -v "$EXCLUDE" | wc -l) -gt $COUNT ]
-  do
-    sleep 1
-    # Without this next line, bash never notices a change in the number of jobs.
-    # Bug noticed in Ubuntu 7.04
-    jobs > /dev/null
-  done
-}
-
 # Figure out what version of a package we last built
 
 function get_download_version()