Whamcloud - gitweb
Get the RC from update_oldconfig properly.
authorbrian <brian>
Wed, 16 Aug 2006 18:37:09 +0000 (18:37 +0000)
committerbrian <brian>
Wed, 16 Aug 2006 18:37:09 +0000 (18:37 +0000)
build/lmake

index 120bea3..0c195c0 100755 (executable)
@@ -394,7 +394,8 @@ depend_kernel()
         #timed_run 300 $TOPDIR/build/update_oldconfig $logfile
         #local RC=${PIPESTATUS[0]}
         #local RC=$(strace -f -o update_oldconfig.strace bash -c "$TOPDIR/build/update_oldconfig $logfile; echo \$?")
         #timed_run 300 $TOPDIR/build/update_oldconfig $logfile
         #local RC=${PIPESTATUS[0]}
         #local RC=$(strace -f -o update_oldconfig.strace bash -c "$TOPDIR/build/update_oldconfig $logfile; echo \$?")
-        local RC=$($TOPDIR/build/update_oldconfig $logfile; echo \$?)
+        $TOPDIR/build/update_oldconfig $logfile
+        local RC=${PIPESTATUS[0]}
         #$TOPDIR/build/update_oldconfig $logfile
         #local RC=${PIPESTATUS[0]}
         if [ $RC -eq 143 ]; then
         #$TOPDIR/build/update_oldconfig $logfile
         #local RC=${PIPESTATUS[0]}
         if [ $RC -eq 143 ]; then