On 7/14/06, George Boudreau <[EMAIL PROTECTED]> wrote:


George Boudreau wrote:
> Manuel,
>   It seems my 'free' time has been allocated for me.. (at least for the
> next day). I was able to come up with this work-around for progress-bar.sh
>   I won't have time to fully test this out but it looks ok, could you
> though this code into the svn and test it. This replaces fuser
> completely in the script.
>
> ---cut---
> makePID=$(fuser -v . 2>&1 | grep make)
> makePID=$(echo $makePID | cut -d" " -f2)
> ---end cut---
>
> mypid=$$
>   # A small ugly.. make is my parent (not root), get its PID
> makePID=`(cat /proc/$mypid/stat) | cut -d " " -f5`
   don't commit this code Manuel.. it works most of the time but not all
of the time. If locked up during an overnight build.  Back to the
drawing board.. *sigh*
>
> ***
> Strictly speaking I am testing the process group id (from man /proc) but
> that seems to work
>
>   George
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to