r2827 - jhalfs/trunk/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Sun Jul 16 13:55:39 PDT 2006


Author: georgeb
Date: 2006-07-16 14:55:39 -0600 (Sun, 16 Jul 2006)
New Revision: 2827

Modified:
   jhalfs/trunk/common/progress_bar.sh
Log:
removed changes to progress_bar.. not reliable 

Modified: jhalfs/trunk/common/progress_bar.sh
===================================================================
--- jhalfs/trunk/common/progress_bar.sh	2006-07-16 20:53:37 UTC (rev 2826)
+++ jhalfs/trunk/common/progress_bar.sh	2006-07-16 20:55:39 UTC (rev 2827)
@@ -21,9 +21,8 @@
 declare -i  SEC=0  # Seconds accumulator
 declare -i  PREV_SEC=0
 
-mypid=$$
-  # A small ugly.. who is my parent *not root
-makePID=`(cat /proc/$mypid/stat) | cut -d " " -f5`
+makePID=$(fuser -v . 2>&1 | grep make)
+makePID=$(echo $makePID | cut -d" " -f2)
 
 write_or_exit() {
     # make has been killed or failed or run to completion, leave




More information about the alfs-log mailing list