Ignore:
Timestamp:
07/26/2006 06:42:01 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
613d46b
Parents:
1504208
Message:

Updated experimental branch to current trunk code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/progress_bar.sh

    r1504208 r3b63c8c  
    2222declare -i  PREV_SEC=0
    2323
     24makePID=$(fuser -v . 2>&1 | grep make)
     25makePID=$(echo $makePID | cut -d" " -f2)
    2426
    2527write_or_exit() {
    2628    # make has been killed or failed or run to completion, leave
    27   if ! fuser -v . 2>&1 | grep make >/dev/null ; then
    28      echo -n "${CURSOR_ON}" && exit
    29   fi
     29  [[ ! -e /proc/$makePID ]] && echo -n "${CURSOR_ON}" && exit
     30
    3031    # Target build complete, leave.
    3132  [[ -f ${TARGET} ]] && echo -n "${CURSOR_ON}" && exit
     33
    3234    # It is safe to write to the screen
    3335  echo -n "$1"
Note: See TracChangeset for help on using the changeset viewer.