From: brian Date: Fri, 24 Mar 2006 21:05:36 +0000 (+0000) Subject: Trickery to get the exit status of strace's subject. X-Git-Tag: v1_7_100~513 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b2635cb33f1b1da13858b00b858f3730f25031be;p=fs%2Flustre-release.git Trickery to get the exit status of strace's subject. --- diff --git a/build/lmake b/build/lmake index 13264d7..f795415 100755 --- a/build/lmake +++ b/build/lmake @@ -383,8 +383,8 @@ depend_kernel() # for them to review and adjust accordingly. local logfile=$(mktemp /tmp/XXXXXX) #timed_run 300 $TOPDIR/build/update_oldconfig $logfile - strace -f -o update_oldconfig.strace $TOPDIR/build/update_oldconfig $logfile - local RC=${PIPESTATUS[0]} + #local RC=${PIPESTATUS[0]} + local RC=$(strace -f -o update_oldconfig.strace bash -c "$TOPDIR/build/update_oldconfig $logfile; echo \$?") if [ $RC -eq 143 ]; then fatal 1 "update_oldconfig timed out" elif [ $RC -ne 0 ]; then