X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flmake;h=120bea37cb62472f5c907e130b64a848cb5681fb;hp=65cbaa06de312775312d7f0500918a9bbde020b5;hb=35a645fbff19caca8bf8caf774bd2c26b71d3c0c;hpb=a9ef885f7833a896506752c2f66060123e963d41 diff --git a/build/lmake b/build/lmake index 65cbaa0..120bea3 100755 --- a/build/lmake +++ b/build/lmake @@ -360,7 +360,7 @@ timed_run() { wait $child_pid # status will be set to 143 if the process had to be killed due to timeout - status=$? + status=${PIPESTATUS[0]} kill -KILL -$dog_pid return $status } @@ -378,18 +378,43 @@ depend_kernel() $MAKE "$MAKE_CC" mrproper || fatal 1 "Error running make mrproper" rm -f rpm-release cp "$CONFIG_FILE" .config - # use the expect script to "make oldconfig" and answer the questions for - # new items conservatively. QA will get notified on anything newly added - # for them to review and adjust accordingly. - timed_run 300 $TOPDIR/build/update_oldconfig - if [ $? -eq 143 ]; then - fatal 1 "update_oldconfig timed out" - fi - # now notify if resulting .config is different than $CONFIG_FILE - local tmpfile=$(mktemp /tmp/XXXXXX) - diff -I '^#.*' -u "$CONFIG_FILE" .config >$tmpfile - if [ -s $tmpfile ]; then - { cat <$tmpfile + if [ -s $tmpfile ]; then + { cat <