configure: Prevent race condition while preparing header file.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2019-07-24 04:03:19 -04:00
parent 3e5e436dbf
commit fe9a0b262b

4
configure vendored
View File

@ -66,10 +66,8 @@ generate_header() {
for file in $SECOND; do for file in $SECOND; do
CONF=$(cat ${CONFIG_FILE} | grep $(basename $file) | cut -d' ' -f2) CONF=$(cat ${CONFIG_FILE} | grep $(basename $file) | cut -d' ' -f2)
source $file "apply" "$CONF" "$file" & source $file "apply" "$CONF" "$file"
done done
wait
} }
if [ -z "$1" ]; then if [ -z "$1" ]; then