Using fuser instead of pidof to watch that make is alive.

This commit is contained in:
Manuel Canales Esparcia 2006-06-01 21:54:18 +00:00
parent 5faab2229e
commit 46758a21be
5 changed files with 3 additions and 6 deletions

View file

@ -992,7 +992,6 @@ $HEADER
SRC= /sources
MOUNT_PT= $BUILDDIR
PKG_LST= $PKG_LST
MAKE_PID=\`pidof make | cut -d " " -f1\`
include makefile-functions

View file

@ -484,7 +484,6 @@ $HEADER
SRC= /sources
MOUNT_PT= $BUILDDIR
PKG_LST= $PKG_LST
MAKE_PID=\`pidof make | cut -d " " -f1\`
include makefile-functions

View file

@ -356,7 +356,6 @@ $HEADER
SRC= /sources
MOUNT_PT= $BUILDDIR
PKG_LST= $PKG_LST
MAKE_PID=\`pidof make | cut -d " " -f1\`
include makefile-functions

View file

@ -201,7 +201,7 @@ cat << EOF
$i: $PREV
@\$(call echo_message, Building)
@./progress_bar.sh \$@ \$(MAKE_PID) &
@./progress_bar.sh \$@ &
@echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
EOF
) >> $MKFILE.tmp

View file

@ -5,11 +5,11 @@
set -e
[[ -z $1 ]] && exit
[[ -z $2 ]] && exit
if [ ! -f $1 ] ; then
while [ -d /proc/$2 ] ; do
while fuser -v . 2>&1 | grep make >/dev/null ; do
echo -n "."
sleep 1
[[ -f $1 ]] && exit
done
fi